RequestPattern.fromJson constructor
RequestPattern.fromJson(
- 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')
? network.ResourceType.fromJson(json['resourceType'] as String)
: null,
requestStage:
json.containsKey('requestStage')
? RequestStage.fromJson(json['requestStage'] as String)
: null,
);
}