toMap method

Map<String, dynamic> toMap()

Converts the model to a map for use in method channel calls

Implementation

Map<String, dynamic> toMap() {
  return {
    'image_data': imageData,
    'images': images,
    'quantity': quantity,
    'widthImage': widthImage,
    'x': x,
    'y': y,
    'size': {
      'width': width,
      'height': height,
    },
  };
}