encode<V> static method
Implementation
static V encode<V>(
PaymentIntentNextActionAlipayHandleRedirect instance,
Encoder<V> encoder,
) {
final container = encoder.container<String>();
if (instance.nativeData != null) {
container.encodeString(
'native_data',
instance.nativeData!,
);
}
if (instance.nativeUrl != null) {
container.encodeString(
'native_url',
instance.nativeUrl!,
);
}
if (instance.returnUrl != null) {
container.encodeString(
'return_url',
instance.returnUrl!,
);
}
if (instance.url != null) {
container.encodeString(
'url',
instance.url!,
);
}
return container.value;
}