encode<V> static method

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

Implementation

static V encode<V>(
  BankConnectionsResourceOwnershipRefresh instance,
  Encoder<V> encoder,
) {
  final container = encoder.container<String>();
  container.encodeDateTime(
    'last_attempted_at',
    instance.lastAttemptedAt,
  );
  BankConnectionsResourceBalanceRefreshStatus.encode(
    instance.status,
    container.nestedSingleValueContainer('status').encoder,
  );
  return container.value;
}