toMap method
Converts this transform object to a Map.
Returns a Map representing the properties of this layer object, including the X and Y coordinates, rotation angle, scale factors, and flip flags.
Implementation
@override
Map<String, dynamic> toMap() {
return {
...super.toMap(),
'item': item.toMap(),
'rawSize': {
'w': rawSize.width,
'h': rawSize.height,
},
'opacity': opacity,
'type': 'painting',
};
}