toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
  if (this.ciHigh != null) {
    json[r'ciHigh'] = this.ciHigh;
  } else {
    json[r'ciHigh'] = null;
  }
  if (this.ciLow != null) {
    json[r'ciLow'] = this.ciLow;
  } else {
    json[r'ciLow'] = null;
  }
  if (this.claims != null) {
    json[r'claims'] = this.claims;
  } else {
    json[r'claims'] = null;
  }
  if (this.gap != null) {
    json[r'gap'] = this.gap;
  } else {
    json[r'gap'] = null;
  }
  if (this.mean != null) {
    json[r'mean'] = this.mean;
  } else {
    json[r'mean'] = null;
  }
  if (this.measured != null) {
    json[r'measured'] = this.measured;
  } else {
    json[r'measured'] = null;
  }
  if (this.measuredAt != null) {
    json[r'measuredAt'] = this.measuredAt!.toUtc().toIso8601String();
  } else {
    json[r'measuredAt'] = null;
  }
  if (this.model != null) {
    json[r'model'] = this.model;
  } else {
    json[r'model'] = null;
  }
  if (this.n != null) {
    json[r'n'] = this.n;
  } else {
    json[r'n'] = null;
  }
  if (this.protocol != null) {
    json[r'protocol'] = this.protocol;
  } else {
    json[r'protocol'] = null;
  }
  if (this.published != null) {
    json[r'published'] = this.published;
  } else {
    json[r'published'] = null;
  }
  if (this.run != null) {
    json[r'run'] = this.run;
  } else {
    json[r'run'] = null;
  }
  if (this.spread != null) {
    json[r'spread'] = this.spread;
  } else {
    json[r'spread'] = null;
  }
  return json;
}