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