toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() => {
      "userId": userId,
      "camId": camId,
      "resId": resId,
      "text": text,
      "width": width,
      "height": height,
      "top": top,
      "left": left,
      "type": type.index
    };