toJson method

Map<String, dynamic> toJson()

Converts this instance to a JSON map.

Example:

final json = shippingAddressParameters.toJson();

Implementation

Map<String, dynamic> toJson() {
  return {
    'allowedCountryCodes': allowedCountryCodes,
    'phoneNumberRequired': phoneNumberRequired,
  };
}