fieldsToJson method

  1. @override
Map<String, Object?> fieldsToJson()
override

Subtype-specific JSON fields, merged into the tagged map.

Implementation

@override
Map<String, Object?> fieldsToJson() => {
  'radius': radius.toJson(),
  if (center.any((component) => component != 0)) 'center': center,
  if (inflate.bind != null || inflate.value != 0) 'inflate': inflate.toJson(),
};