encode<V> static method

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

Implementation

static V encode<V>(
  AccountCardIssuingSettings instance,
  Encoder<V> encoder,
) {
  final container = encoder.container<String>();
  if (instance.tosAcceptance != null) {
    CardIssuingAccountTermsOfService.encode(
      instance.tosAcceptance!,
      container.nestedSingleValueContainer('tos_acceptance').encoder,
    );
  }
  return container.value;
}