toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final _json = <String, dynamic>{};
  if (type != null) {
    _json[r'type'] = type;
  }
  if (url != null) {
    _json[r'url'] = url;
  }
  if (title != null) {
    _json[r'title'] = title;
  }
  if (description != null) {
    _json[r'description'] = description;
  }
  if (determiner != null) {
    _json[r'determiner'] = determiner;
  }
  if (siteName != null) {
    _json[r'site_name'] = siteName;
  }
  if (locale != null) {
    _json[r'locale'] = locale;
  }
  _json[r'locales_alternate'] = localesAlternate;
  _json[r'images'] = images;
  _json[r'videos'] = videos;
  _json[r'audios'] = audios;
  if (article != null) {
    _json[r'article'] = article;
  }
  if (book != null) {
    _json[r'book'] = book;
  }
  if (profile != null) {
    _json[r'profile'] = profile;
  }
  return _json;
}