toJson method

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

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