PolicyRulesWithSubjects.fromJson constructor
Creates a PolicyRulesWithSubjects from JSON data.
Implementation
PolicyRulesWithSubjects.fromJson(Map<String, dynamic> json)
: this(
nonResourceRules: json['nonResourceRules'] != null
? NonResourcePolicyRule.listFromJson(
(json['nonResourceRules'] as Iterable)
.cast<Map<String, dynamic>>())
: null,
resourceRules: json['resourceRules'] != null
? ResourcePolicyRule.listFromJson(
(json['resourceRules'] as Iterable)
.cast<Map<String, dynamic>>())
: null,
subjects: json['subjects'] != null
? Subject.listFromJson(
(json['subjects'] as Iterable).cast<Map<String, dynamic>>())
: [],
);