encode<V> static method

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

Implementation

static V encode<V>(
  TaxIdVerification instance,
  Encoder<V> encoder,
) {
  final container = encoder.container<String>();
  container.encodeString(
    'status',
    instance.status,
  );
  if (instance.verifiedAddress != null) {
    container.encodeString(
      'verified_address',
      instance.verifiedAddress!,
    );
  }
  if (instance.verifiedName != null) {
    container.encodeString(
      'verified_name',
      instance.verifiedName!,
    );
  }
  return container.value;
}