toJson method
Implementation
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
json[r'categories'] = this.categories;
if (this.createdAt != null) {
json[r'createdAt'] = this.createdAt;
} else {
json[r'createdAt'] = null;
}
if (this.dataType != null) {
json[r'dataType'] = this.dataType;
} else {
json[r'dataType'] = null;
}
if (this.maxValue != null) {
json[r'maxValue'] = this.maxValue;
} else {
json[r'maxValue'] = null;
}
if (this.minValue != null) {
json[r'minValue'] = this.minValue;
} else {
json[r'minValue'] = null;
}
if (this.name != null) {
json[r'name'] = this.name;
} else {
json[r'name'] = null;
}
if (this.updatedAt != null) {
json[r'updatedAt'] = this.updatedAt;
} else {
json[r'updatedAt'] = null;
}
return json;
}