RequestPattern.fromJson constructor

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

Implementation

factory RequestPattern.fromJson(Map<String, dynamic> json) {
  return RequestPattern(
    urlPattern:
        json.containsKey('urlPattern') ? json['urlPattern'] as String : null,
    resourceType: json.containsKey('resourceType')
        ? ResourceType.fromJson(json['resourceType'] as String)
        : null,
    interceptionStage: json.containsKey('interceptionStage')
        ? InterceptionStage.fromJson(json['interceptionStage'] as String)
        : null,
  );
}