toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
  if (this.at != null) {
    json[r'at'] = this.at!.toUtc().toIso8601String();
  } else {
    json[r'at'] = null;
  }
  if (this.benchmark != null) {
    json[r'benchmark'] = this.benchmark;
  } else {
    json[r'benchmark'] = null;
  }
  if (this.by != null) {
    json[r'by'] = this.by;
  } else {
    json[r'by'] = null;
  }
  if (this.model != null) {
    json[r'model'] = this.model;
  } else {
    json[r'model'] = null;
  }
  if (this.origin != null) {
    json[r'origin'] = this.origin;
  } else {
    json[r'origin'] = null;
  }
  if (this.protocol != null) {
    json[r'protocol'] = this.protocol;
  } else {
    json[r'protocol'] = null;
  }
  if (this.provider != null) {
    json[r'provider'] = this.provider;
  } else {
    json[r'provider'] = null;
  }
  if (this.score != null) {
    json[r'score'] = this.score;
  } else {
    json[r'score'] = null;
  }
  if (this.source_ != null) {
    json[r'source'] = this.source_;
  } else {
    json[r'source'] = null;
  }
  return json;
}