encode<V> static method
Implementation
static V encode<V>(
PaymentIntentCustomerAcceptance instance,
Encoder<V> encoder,
) {
final container = encoder.container<String>();
if (instance.acceptedAt != null) {
container.encodeDateTime(
'accepted_at',
instance.acceptedAt!,
);
}
if (instance.offline != null) {
container.encodePrimitive(
'offline',
instance.offline!,
);
}
if (instance.online != null) {
PaymentIntentOnline.encode(
instance.online!,
container.nestedSingleValueContainer('online').encoder,
);
}
CustomerAcceptanceType.encode(
instance.type,
container.nestedSingleValueContainer('type').encoder,
);
return container.value;
}