encode<V> static method

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

Implementation

static V encode<V>(
  PersonCompanyAuthorization instance,
  Encoder<V> encoder,
) {
  final container = encoder.container<String>();
  if (instance.files != null) {
    container.encodeList(
      'files',
      (container) => instance.files!.forEach((el) =>
          el == null ? container.encodeNull() : container.encodeString(el)),
    );
  }
  return container.value;
}