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.existing != null) {
    json[r'existing'] = this.existing;
  } else {
    json[r'existing'] = 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;
  }
  return json;
}