toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (country != null) 'country': country!,
      if (customUrl != null) 'customUrl': customUrl!,
      if (defaultLanguage != null) 'defaultLanguage': defaultLanguage!,
      if (description != null) 'description': description!,
      if (localized != null) 'localized': localized!,
      if (publishedAt != null)
        'publishedAt': publishedAt!.toUtc().toIso8601String(),
      if (thumbnails != null) 'thumbnails': thumbnails!,
      if (title != null) 'title': title!,
    };