toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
  if (this.blind != null) {
    json[r'blind'] = this.blind;
  } else {
    json[r'blind'] = null;
  }
  if (this.buckets != null) {
    json[r'buckets'] = this.buckets;
  } else {
    json[r'buckets'] = null;
  }
  if (this.max != null) {
    json[r'max'] = this.max;
  } else {
    json[r'max'] = null;
  }
  if (this.mean != null) {
    json[r'mean'] = this.mean;
  } else {
    json[r'mean'] = null;
  }
  if (this.name != null) {
    json[r'name'] = this.name;
  } else {
    json[r'name'] = null;
  }
  if (this.present != null) {
    json[r'present'] = this.present;
  } else {
    json[r'present'] = null;
  }
  if (this.source_ != null) {
    json[r'source'] = this.source_;
  } else {
    json[r'source'] = null;
  }
  if (this.unit != null) {
    json[r'unit'] = this.unit;
  } else {
    json[r'unit'] = null;
  }
  return json;
}