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