encode<V> static method

V encode<V>(
  1. FinancialConnectionsAccountOwnership instance,
  2. Encoder<V> encoder
)
override

Implementation

static V encode<V>(
  FinancialConnectionsAccountOwnership instance,
  Encoder<V> encoder,
) {
  final container = encoder.container<String>();
  container.encodeDateTime(
    'created',
    instance.created,
  );
  container.encodeString(
    'id',
    instance.id,
  );
  container.encodeString(
    'object',
    'financial_connections.account_ownership',
  );
  FinancialConnectionsAccountOwnershipOwners.encode(
    instance.owners,
    container.nestedSingleValueContainer('owners').encoder,
  );
  return container.value;
}