encode<V> static method

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

Implementation

static V encode<V>(
  ForwardedRequestHeader instance,
  Encoder<V> encoder,
) {
  final container = encoder.container<String>();
  container.encodeString(
    'name',
    instance.name,
  );
  container.encodeString(
    'value',
    instance.value,
  );
  return container.value;
}