toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
  if (this.asOf != null) {
    json[r'as_of'] = this.asOf;
  } else {
    json[r'as_of'] = null;
  }
    json[r'conflicts'] = this.conflicts;
  if (this.contested != null) {
    json[r'contested'] = this.contested;
  } else {
    json[r'contested'] = null;
  }
  if (this.entity != null) {
    json[r'entity'] = this.entity;
  } else {
    json[r'entity'] = null;
  }
  if (this.known != null) {
    json[r'known'] = this.known;
  } else {
    json[r'known'] = null;
  }
  if (this.relation != null) {
    json[r'relation'] = this.relation;
  } else {
    json[r'relation'] = null;
  }
  if (this.truncated != null) {
    json[r'truncated'] = this.truncated;
  } else {
    json[r'truncated'] = null;
  }
  if (this.winner != null) {
    json[r'winner'] = this.winner;
  } else {
    json[r'winner'] = null;
  }
  return json;
}