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 (phoneNumber != null) "phone_number": encodeValue(phoneNumber),
if (reference != null) "reference": encodeValue(reference),
if (shippingAddress != null)
"shipping_address": encodeValue(shippingAddress),
if (title != null) "title": encodeValue(title),
"name": encodeValue(name),
};