toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
  if (this.defaultBranch != null) {
    json[r'defaultBranch'] = this.defaultBranch;
  } else {
    json[r'defaultBranch'] = 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.imported != null) {
    json[r'imported'] = this.imported;
  } else {
    json[r'imported'] = null;
  }
  if (this.lastSyncedAt != null) {
    json[r'lastSyncedAt'] = this.lastSyncedAt;
  } else {
    json[r'lastSyncedAt'] = 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.syncStatus != null) {
    json[r'syncStatus'] = this.syncStatus;
  } else {
    json[r'syncStatus'] = null;
  }
  return json;
}