toJson method

  1. @override
Map<String, dynamic>? toJson(
  1. Rect? value
)
override

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';
}