toJson method

Map<String, dynamic> toJson()

Produces a Map that can be serialized to JSON.

Implementation

Map<String, dynamic> toJson() {
  return <String, dynamic>{
    if (calendar != null) 'calendar': calendar!,
    if (displayName != null) 'display_name': displayName!,
    if (locale != null) 'locale': locale!,
    if (is24HourFormat != null) 'is_24_hour_format': is24HourFormat!,
    if (timezone != null) 'timezone': timezone!,
  };
}