toJson method

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

Implementation

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

  return <String, dynamic>{
    'blurRadius': object.blurRadius,
    'color': const NullableColorConverter().toJson(object.color),
    'offset': const NullableOffsetConverter().toJson(object.offset),
  };
}