toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
  json[r'level'] = this.level;
  json[r'operator'] = this.operator_;
  json[r'value'] = this.value;
  if (this.valueUnit != null) {
    json[r'value_unit'] = this.valueUnit;
  } else {
    json[r'value_unit'] = null;
  }
  if (this.windowSeconds != null) {
    json[r'window_seconds'] = this.windowSeconds;
  } else {
    json[r'window_seconds'] = null;
  }
  return json;
}