toJson method
Implementation
Map<String, dynamic> toJson() {
final addOnType = this.addOnType;
final autoSnapshotAddOnRequest = this.autoSnapshotAddOnRequest;
return {
'addOnType': addOnType.toValue(),
if (autoSnapshotAddOnRequest != null)
'autoSnapshotAddOnRequest': autoSnapshotAddOnRequest,
};
}