toJson method
Implementation
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
if (this.codec != null) {
json[r'codec'] = this.codec;
} else {
json[r'codec'] = null;
}
if (this.label != null) {
json[r'label'] = this.label;
} else {
json[r'label'] = null;
}
json[r'metrics'] = this.metrics;
json[r'metrics_meta'] = this.metricsMeta;
json[r'metrics_order'] = this.metricsOrder;
if (this.rid != null) {
json[r'rid'] = this.rid;
} else {
json[r'rid'] = null;
}
json[r'thresholds'] = this.thresholds;
json[r'track_id'] = this.trackId;
if (this.trackType != null) {
json[r'track_type'] = this.trackType;
} else {
json[r'track_type'] = null;
}
return json;
}