encode<V> static method
V
encode<V>(
- PaymentIntentNextActionCashappHandleRedirectOrDisplayQrCode instance,
- Encoder<
V> encoder
Implementation
static V encode<V>(
PaymentIntentNextActionCashappHandleRedirectOrDisplayQrCode instance,
Encoder<V> encoder,
) {
final container = encoder.container<String>();
container.encodeString(
'hosted_instructions_url',
instance.hostedInstructionsUrl,
);
container.encodeString(
'mobile_auth_url',
instance.mobileAuthUrl,
);
PaymentIntentNextActionCashappQrCode.encode(
instance.qrCode,
container.nestedSingleValueContainer('qr_code').encoder,
);
return container.value;
}