toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
  if (this.cacheControl != null) {
    json[r'cacheControl'] = this.cacheControl;
  } else {
    json[r'cacheControl'] = null;
  }
  if (this.description != null) {
    json[r'description'] = this.description;
  } else {
    json[r'description'] = null;
  }
  if (this.framework != null) {
    json[r'framework'] = this.framework;
  } else {
    json[r'framework'] = null;
  }
  if (this.hidden != null) {
    json[r'hidden'] = this.hidden;
  } else {
    json[r'hidden'] = null;
  }
  if (this.hiddenReason != null) {
    json[r'hiddenReason'] = this.hiddenReason;
  } else {
    json[r'hiddenReason'] = null;
  }
  if (this.license != null) {
    json[r'license'] = this.license;
  } else {
    json[r'license'] = null;
  }
  if (this.name != null) {
    json[r'name'] = this.name;
  } else {
    json[r'name'] = null;
  }
  if (this.repo != null) {
    json[r'repo'] = this.repo;
  } else {
    json[r'repo'] = null;
  }
  if (this.slug != null) {
    json[r'slug'] = this.slug;
  } else {
    json[r'slug'] = null;
  }
    json[r'tags'] = this.tags;
  if (this.upstream != null) {
    json[r'upstream'] = this.upstream;
  } else {
    json[r'upstream'] = null;
  }
  if (this.visibility != null) {
    json[r'visibility'] = this.visibility;
  } else {
    json[r'visibility'] = null;
  }
  return json;
}