encode<V> static method
Implementation
static V encode<V>(
PaymentIntentBillingDetails instance,
Encoder<V> encoder,
) {
final container = encoder.container<String>();
if (instance.address != null) {
AccountSupportAddress.encode(
instance.address!,
container.nestedSingleValueContainer('address').encoder,
);
}
if (instance.email != null) {
container.encodeString(
'email',
instance.email!,
);
}
if (instance.name != null) {
container.encodeString(
'name',
instance.name!,
);
}
if (instance.phone != null) {
container.encodeString(
'phone',
instance.phone!,
);
}
return container.value;
}