toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
  if (this.cloneUrl != null) {
    json[r'cloneUrl'] = this.cloneUrl;
  } else {
    json[r'cloneUrl'] = 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.fullName != null) {
    json[r'fullName'] = this.fullName;
  } else {
    json[r'fullName'] = null;
  }
  if (this.htmlUrl != null) {
    json[r'htmlUrl'] = this.htmlUrl;
  } else {
    json[r'htmlUrl'] = null;
  }
  if (this.name != null) {
    json[r'name'] = this.name;
  } else {
    json[r'name'] = null;
  }
  if (this.private != null) {
    json[r'private'] = this.private;
  } else {
    json[r'private'] = null;
  }
  if (this.pushedAt != null) {
    json[r'pushedAt'] = this.pushedAt;
  } else {
    json[r'pushedAt'] = null;
  }
  return json;
}