toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
    json[r'branches'] = this.branches;
  if (this.cloneUrl != null) {
    json[r'cloneUrl'] = this.cloneUrl;
  } else {
    json[r'cloneUrl'] = null;
  }
  if (this.createdAt != null) {
    json[r'createdAt'] = this.createdAt;
  } else {
    json[r'createdAt'] = null;
  }
  if (this.defaultBranch != null) {
    json[r'defaultBranch'] = this.defaultBranch;
  } else {
    json[r'defaultBranch'] = null;
  }
  if (this.description != null) {
    json[r'description'] = this.description;
  } else {
    json[r'description'] = null;
  }
  if (this.head != null) {
    json[r'head'] = this.head;
  } else {
    json[r'head'] = null;
  }
  if (this.id != null) {
    json[r'id'] = this.id;
  } else {
    json[r'id'] = null;
  }
  if (this.name != null) {
    json[r'name'] = this.name;
  } else {
    json[r'name'] = null;
  }
  if (this.org != null) {
    json[r'org'] = this.org;
  } else {
    json[r'org'] = null;
  }
  if (this.project != null) {
    json[r'project'] = this.project;
  } else {
    json[r'project'] = null;
  }
  if (this.public != null) {
    json[r'public'] = this.public;
  } else {
    json[r'public'] = null;
  }
  if (this.sizeBytes != null) {
    json[r'sizeBytes'] = this.sizeBytes;
  } else {
    json[r'sizeBytes'] = null;
  }
  if (this.sshUrl != null) {
    json[r'sshUrl'] = this.sshUrl;
  } else {
    json[r'sshUrl'] = null;
  }
  if (this.updatedAt != null) {
    json[r'updatedAt'] = this.updatedAt;
  } else {
    json[r'updatedAt'] = null;
  }
  return json;
}