toJson method

Json toJson()

Converts name of uiView/cameraKey into json format

Implementation

Json toJson() => {
  "name": name,
  "cameraName": key?.value,
};