toJson method
Implementation
@override
Map<String, dynamic>? toJson(Rect? object) {
if (object == null) return null;
return {
'bottom': object.bottom,
'left': object.left,
'right': object.right,
'top': object.top,
'type': 'ltrb',
};
}