encode<V> static method
Implementation
static V encode<V>(
PaymentMethodConfigResourceDisplayPreference instance,
Encoder<V> encoder,
) {
final container = encoder.container<String>();
if (instance.overridable != null) {
container.encodeBool(
'overridable',
instance.overridable!,
);
}
container.encodeString(
'preference',
instance.preference,
);
container.encodeString(
'value',
instance.value,
);
return container.value;
}