fieldsToJson method

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

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

Implementation

@override
Map<String, Object?> fieldsToJson() => {
  if (fitBind == null) 'fit': fit,
  if (fitBind != null) 'fitBind': fitBind,
  'width': width.toJson(),
  'height': height.toJson(),
  'pixelsPerUnit': pixelsPerUnit.toJson(),
  'zoom': zoom.toJson(),
  'near': near.toJson(),
  'far': far.toJson(),
  if (offsetBind != null) 'offsetBind': offsetBind,
};