SelfSubjectAccessReviewSpec.fromJson constructor
Creates a SelfSubjectAccessReviewSpec from JSON data.
Implementation
factory SelfSubjectAccessReviewSpec.fromJson(Map<String, dynamic> json) {
final tempNonResourceAttributesJson = json['nonResourceAttributes'];
final tempResourceAttributesJson = json['resourceAttributes'];
final NonResourceAttributes? tempNonResourceAttributes =
tempNonResourceAttributesJson != null
? NonResourceAttributes.fromJson(tempNonResourceAttributesJson)
: null;
final ResourceAttributes? tempResourceAttributes =
tempResourceAttributesJson != null
? ResourceAttributes.fromJson(tempResourceAttributesJson)
: null;
return SelfSubjectAccessReviewSpec(
nonResourceAttributes: tempNonResourceAttributes,
resourceAttributes: tempResourceAttributes,
);
}