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