toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() => {
      if (format != null) 'format': format,
      if (style != null) 'style': style,
    };