GroupRelation.fromJson constructor
GroupRelation.fromJson(
- Map json_
Implementation
GroupRelation.fromJson(core.Map json_)
: this(
displayName: json_.containsKey('displayName')
? json_['displayName'] as core.String
: null,
group:
json_.containsKey('group') ? json_['group'] as core.String : null,
groupKey: json_.containsKey('groupKey')
? EntityKey.fromJson(
json_['groupKey'] as core.Map<core.String, core.dynamic>)
: null,
labels: json_.containsKey('labels')
? (json_['labels'] as core.Map<core.String, core.dynamic>).map(
(key, value) => core.MapEntry(
key,
value as core.String,
),
)
: null,
relationType: json_.containsKey('relationType')
? json_['relationType'] as core.String
: null,
roles: json_.containsKey('roles')
? (json_['roles'] as core.List)
.map((value) => TransitiveMembershipRole.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
);