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.delta != null) {
    json[r'delta'] = this.delta;
  } else {
    json[r'delta'] = null;
  }
  if (this.n != null) {
    json[r'n'] = this.n;
  } else {
    json[r'n'] = null;
  }
  if (this.run != null) {
    json[r'run'] = this.run;
  } else {
    json[r'run'] = null;
  }
  if (this.score != null) {
    json[r'score'] = this.score;
  } else {
    json[r'score'] = null;
  }
  return json;
}