toJson method

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

Implementation

@override
Map<String, dynamic>? toJson(Size? value) {
  if (value == null) return null;

  return {
    'height': value.height,
    'width': value.width,
  };

  throw 'Json_Unsuported_Value';
}