toJson method

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

Implementation

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

  return <String, dynamic>{
    'bottomLeft': const NullableRadiusConverter().toJson(value.bottomLeft),
    'bottomRight': const NullableRadiusConverter().toJson(value.bottomRight),
    'topLeft': const NullableRadiusConverter().toJson(value.topLeft),
    'topRight': const NullableRadiusConverter().toJson(value.topRight),
    'type': 'only',
  };

  throw 'Json_Unsuported_Value';
}