toJson method
Implementation
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
if (this.type != null) {
json[r'type'] = this.type;
} else {
json[r'type'] = null;
}
if (this.maximumWeightKg != null) {
json[r'maximumWeightKg'] = this.maximumWeightKg;
} else {
json[r'maximumWeightKg'] = null;
}
if (this.maximumLengthCm != null) {
json[r'maximumLengthCm'] = this.maximumLengthCm;
} else {
json[r'maximumLengthCm'] = null;
}
if (this.maximumHeightCm != null) {
json[r'maximumHeightCm'] = this.maximumHeightCm;
} else {
json[r'maximumHeightCm'] = null;
}
if (this.maximumDepthCm != null) {
json[r'maximumDepthCm'] = this.maximumDepthCm;
} else {
json[r'maximumDepthCm'] = null;
}
return json;
}