encode<V> static method

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

Implementation

static V encode<V>(
  CardholderCardIssuing instance,
  Encoder<V> encoder,
) {
  final container = encoder.container<String>();
  if (instance.userTermsAcceptance != null) {
    PersonAccount.encode(
      instance.userTermsAcceptance!,
      container.nestedSingleValueContainer('user_terms_acceptance').encoder,
    );
  }
  return container.value;
}