toLabel method
Converts the model to a map for use in method channel calls
Implementation
Map<String, dynamic> toLabel() {
final label = labelPerRow ?? LabelPerRow.single;
final map = <String, dynamic>{
'images': images,
'quantity': quantity,
'x': label.x,
'y': label.y,
'size': {
'width': label.width,
'height': label.height,
},
};
return map;
}