toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
  if (this.branch != null) {
    json[r'branch'] = this.branch;
  } else {
    json[r'branch'] = null;
  }
  if (this.changed != null) {
    json[r'changed'] = this.changed;
  } else {
    json[r'changed'] = null;
  }
  if (this.commitSha != null) {
    json[r'commitSha'] = this.commitSha;
  } else {
    json[r'commitSha'] = null;
  }
  if (this.diffstat != null) {
    json[r'diffstat'] = this.diffstat;
  } else {
    json[r'diffstat'] = null;
  }
  if (this.error != null) {
    json[r'error'] = this.error;
  } else {
    json[r'error'] = null;
  }
  if (this.id != null) {
    json[r'id'] = this.id;
  } else {
    json[r'id'] = null;
  }
  if (this.ok != null) {
    json[r'ok'] = this.ok;
  } else {
    json[r'ok'] = null;
  }
  if (this.runId != null) {
    json[r'runId'] = this.runId;
  } else {
    json[r'runId'] = null;
  }
  return json;
}