toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
  json[r'url'] = this.url;
  json[r'license'] = this.license;
  if (this.webUrl != null) {
    json[r'webUrl'] = this.webUrl;
  } else {
    json[r'webUrl'] = null;
  }
  if (this.author != null) {
    json[r'author'] = this.author;
  } else {
    json[r'author'] = null;
  }
  if (this.title != null) {
    json[r'title'] = this.title;
  } else {
    json[r'title'] = null;
  }
  if (this.description != null) {
    json[r'description'] = this.description;
  } else {
    json[r'description'] = null;
  }
  if (this.htmlAttributions != null) {
    json[r'htmlAttributions'] = this.htmlAttributions;
  } else {
    json[r'htmlAttributions'] = null;
  }
  return json;
}