toJson method
Implementation
@override
Map<String, Object?> toJson() => {
if (billingAddress != null)
"billing_address": encodeValue(billingAddress),
if (customData != null) "custom_data": encodeValue(customData),
if (emailAddress != null) "email_address": encodeValue(emailAddress),
if (name != null) "name": encodeValue(name),
if (phoneNumber != null) "phone_number": encodeValue(phoneNumber),
if (reference != null) "reference": encodeValue(reference),
if (shippingAddress != null)
"shipping_address": encodeValue(shippingAddress),
if (suffix != null) "suffix": encodeValue(suffix),
if (title != null) "title": encodeValue(title),
"customer_id": encodeValue(customerId),
};