toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
  if (this.cloneUrl != null) {
    json[r'clone_url'] = this.cloneUrl;
  } else {
    json[r'clone_url'] = null;
  }
  if (this.defaultBranch != null) {
    json[r'default_branch'] = this.defaultBranch;
  } else {
    json[r'default_branch'] = null;
  }
  if (this.description != null) {
    json[r'description'] = this.description;
  } else {
    json[r'description'] = null;
  }
  if (this.fullName != null) {
    json[r'full_name'] = this.fullName;
  } else {
    json[r'full_name'] = null;
  }
  if (this.htmlUrl != null) {
    json[r'html_url'] = this.htmlUrl;
  } else {
    json[r'html_url'] = null;
  }
  if (this.language != null) {
    json[r'language'] = this.language;
  } else {
    json[r'language'] = null;
  }
  if (this.private != null) {
    json[r'private'] = this.private;
  } else {
    json[r'private'] = null;
  }
  if (this.stars != null) {
    json[r'stars'] = this.stars;
  } else {
    json[r'stars'] = null;
  }
  return json;
}