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