encode<V> static method
Implementation
static V encode<V>(
FinancialConnectionsAccountOwner instance,
Encoder<V> encoder,
) {
final container = encoder.container<String>();
if (instance.email != null) {
container.encodeString(
'email',
instance.email!,
);
}
container.encodeString(
'id',
instance.id,
);
container.encodeString(
'name',
instance.name,
);
container.encodeString(
'object',
'financial_connections.account_owner',
);
container.encodeString(
'ownership',
instance.ownership,
);
if (instance.phone != null) {
container.encodeString(
'phone',
instance.phone!,
);
}
if (instance.rawAddress != null) {
container.encodeString(
'raw_address',
instance.rawAddress!,
);
}
if (instance.refreshedAt != null) {
container.encodeDateTime(
'refreshed_at',
instance.refreshedAt!,
);
}
return container.value;
}