toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final Map<String, dynamic> data = <String, dynamic>{};
  data['userId'] = userId;
  data['streamId'] = streamId ?? "";
  data['x'] = x;
  data['y'] = y;
  data['width'] = width;
  data['height'] = height;
  data['zOrder'] = zOrder;
  data['inputType'] = inputType.index;
  return data;
}