toJson method
Implementation
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
if (this.dataAmount != null) {
json[r'dataAmount'] = this.dataAmount;
} else {
json[r'dataAmount'] = null;
}
if (this.dataUnit != null) {
json[r'dataUnit'] = this.dataUnit;
} else {
json[r'dataUnit'] = null;
}
if (this.dataLabel != null) {
json[r'dataLabel'] = this.dataLabel;
} else {
json[r'dataLabel'] = null;
}
return json;
}