encode<V> static method
Implementation
static V encode<V>(
IssuingCardGooglePay instance,
Encoder<V> encoder,
) {
final container = encoder.container<String>();
container.encodeBool(
'eligible',
instance.eligible,
);
if (instance.ineligibleReason != null) {
IssuingCardApplePayIneligibleReason.encode(
instance.ineligibleReason!,
container.nestedSingleValueContainer('ineligible_reason').encoder,
);
}
return container.value;
}