encode<V> static method

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

Implementation

static V encode<V>(
  PortalCustomerUpdate instance,
  Encoder<V> encoder,
) {
  final container = encoder.container<String>();
  container.encodeList(
    'allowed_updates',
    (container) =>
        instance.allowedUpdates.forEach((el) => container.encodeString(el)),
  );
  container.encodeBool(
    'enabled',
    instance.enabled,
  );
  return container.value;
}