ForwardedRequestContext.fromJson constructor

ForwardedRequestContext.fromJson(
  1. Object? json
)

Implementation

factory ForwardedRequestContext.fromJson(Object? json) {
  final map = (json as Map).cast<String, Object?>();
  return ForwardedRequestContext(
    destinationDuration: (map['destination_duration'] as num).toInt(),
    destinationIpAddress: (map['destination_ip_address'] as String),
  );
}