encode<V> static method
Implementation
static V encode<V>(
PaymentMethodCardPresentNetworks instance,
Encoder<V> encoder,
) {
final container = encoder.container<String>();
container.encodeList(
'available',
(container) =>
instance.available.forEach((el) => container.encodeString(el)),
);
if (instance.preferred != null) {
container.encodeString(
'preferred',
instance.preferred!,
);
}
return container.value;
}