ForwardedRequestDetails.fromJson constructor
ForwardedRequestDetails.fromJson(
- Object? json
Implementation
factory ForwardedRequestDetails.fromJson(Object? json) {
final map = (json as Map).cast<String, Object?>();
return ForwardedRequestDetails(
body: (map['body'] as String),
headers: (map['headers'] as List<Object?>)
.map((el) => ForwardedRequestHeader.fromJson(el))
.toList(),
);
}