encode<V> static method

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

Implementation

static V encode<V>(
  CountrySpecVerificationFields instance,
  Encoder<V> encoder,
) {
  final container = encoder.container<String>();
  CountrySpecVerificationFieldDetails.encode(
    instance.company,
    container.nestedSingleValueContainer('company').encoder,
  );
  CountrySpecVerificationFieldDetails.encode(
    instance.individual,
    container.nestedSingleValueContainer('individual').encoder,
  );
  return container.value;
}