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