RoleGrant.fromJson constructor
RoleGrant.fromJson(
- Map json_
Implementation
RoleGrant.fromJson(core.Map json_)
: this(
helperTextTemplate: json_.containsKey('helperTextTemplate')
? json_['helperTextTemplate'] as core.String
: null,
principal: json_.containsKey('principal')
? json_['principal'] as core.String
: null,
resource: json_.containsKey('resource')
? Resource.fromJson(
json_['resource'] as core.Map<core.String, core.dynamic>)
: null,
roles: json_.containsKey('roles')
? (json_['roles'] as core.List)
.map((value) => value as core.String)
.toList()
: null,
);