toMap method
Convert to map for serialization
Implementation
Map<String, dynamic> toMap() {
final map = <String, dynamic>{};
if (left != null) map['left'] = left;
if (top != null) map['top'] = top;
if (right != null) map['right'] = right;
if (bottom != null) map['bottom'] = bottom;
if (translateX != null) map['translateX'] = translateX;
if (translateY != null) map['translateY'] = translateY;
return map;
}