encode<V> static method
Implementation
static V encode<V>(
BankConnectionsResourceAccountholder instance,
Encoder<V> encoder,
) {
final container = encoder.container<String>();
if (instance.account != null) {
AccountOrId.encode(
instance.account!,
container.nestedSingleValueContainer('account').encoder,
);
}
if (instance.customer != null) {
CustomerOrId.encode(
instance.customer!,
container.nestedSingleValueContainer('customer').encoder,
);
}
container.encodeString(
'type',
instance.type,
);
return container.value;
}