encode<V> static method

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

Implementation

static V encode<V>(
  CountrySpecVerificationFieldDetails instance,
  Encoder<V> encoder,
) {
  final container = encoder.container<String>();
  container.encodeList(
    'additional',
    (container) =>
        instance.additional.forEach((el) => container.encodeString(el)),
  );
  container.encodeList(
    'minimum',
    (container) =>
        instance.minimum.forEach((el) => container.encodeString(el)),
  );
  return container.value;
}