encode<V> static method

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

Implementation

static V encode<V>(
  ForwardedRequestContext instance,
  Encoder<V> encoder,
) {
  final container = encoder.container<String>();
  container.encodeInt(
    'destination_duration',
    instance.destinationDuration,
  );
  container.encodeString(
    'destination_ip_address',
    instance.destinationIpAddress,
  );
  return container.value;
}