toJson method
Converts this instance to a JSON map.
Example:
final json = billingAddressParameters.toJson();
Implementation
Map<String, dynamic> toJson() {
return {
'format': format.toString().split('.').last,
'phoneNumberRequired': phoneNumberRequired,
};
}