NonResourceRule.fromJson constructor
Creates a NonResourceRule from JSON data.
Implementation
factory NonResourceRule.fromJson(Map<String, dynamic> json) {
final tempNonResourceURLsJson = json['nonResourceURLs'];
final tempVerbsJson = json['verbs'];
final List<String>? tempNonResourceURLs = tempNonResourceURLsJson != null
? List<String>.from(tempNonResourceURLsJson)
: null;
final List<String> tempVerbs = List<String>.from(tempVerbsJson);
return NonResourceRule(
nonResourceURLs: tempNonResourceURLs,
verbs: tempVerbs,
);
}