SampledHTTPRequest.fromJson constructor

SampledHTTPRequest.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory SampledHTTPRequest.fromJson(Map<String, dynamic> json) {
  return SampledHTTPRequest(
    request: HTTPRequest.fromJson(json['Request'] as Map<String, dynamic>),
    weight: json['Weight'] as int,
    action: json['Action'] as String?,
    ruleNameWithinRuleGroup: json['RuleNameWithinRuleGroup'] as String?,
    timestamp: timeStampFromJson(json['Timestamp']),
  );
}