toJson method

Map<String, dynamic> toJson()

Implementation

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