encode<V> static method

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

Implementation

static V encode<V>(
  DeletedBankAccount instance,
  Encoder<V> encoder,
) {
  final container = encoder.container<String>();
  if (instance.currency != null) {
    container.encodeString(
      'currency',
      instance.currency!,
    );
  }
  container.encodeBool(
    'deleted',
    true,
  );
  container.encodeString(
    'id',
    instance.id,
  );
  container.encodeString(
    'object',
    'bank_account',
  );
  return container.value;
}