encode<V> static method
Implementation
static V encode<V>(
PaymentIntentNextActionPaynowDisplayQrCode instance,
Encoder<V> encoder,
) {
final container = encoder.container<String>();
container.encodeString(
'data',
instance.data,
);
if (instance.hostedInstructionsUrl != null) {
container.encodeString(
'hosted_instructions_url',
instance.hostedInstructionsUrl!,
);
}
container.encodeString(
'image_url_png',
instance.imageUrlPng,
);
container.encodeString(
'image_url_svg',
instance.imageUrlSvg,
);
return container.value;
}