encode<V> static method

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

Implementation

static V encode<V>(
  AccountIndividualVerification instance,
  Encoder<V> encoder,
) {
  final container = encoder.container<String>();
  if (instance.additionalDocument != null) {
    AccountDocument.encode(
      instance.additionalDocument!,
      container.nestedSingleValueContainer('additional_document').encoder,
    );
  }
  if (instance.document != null) {
    AccountDocument.encode(
      instance.document!,
      container.nestedSingleValueContainer('document').encoder,
    );
  }
  return container.value;
}