Membership.fromJson constructor
Membership.fromJson(
- Map json_
Implementation
Membership.fromJson(core.Map json_)
: this(
createTime: json_.containsKey('createTime')
? json_['createTime'] as core.String
: null,
deliverySetting: json_.containsKey('deliverySetting')
? json_['deliverySetting'] as core.String
: null,
name: json_.containsKey('name') ? json_['name'] as core.String : null,
preferredMemberKey: json_.containsKey('preferredMemberKey')
? EntityKey.fromJson(json_['preferredMemberKey']
as core.Map<core.String, core.dynamic>)
: null,
roles: json_.containsKey('roles')
? (json_['roles'] as core.List)
.map((value) => MembershipRole.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
type: json_.containsKey('type') ? json_['type'] as core.String : null,
updateTime: json_.containsKey('updateTime')
? json_['updateTime'] as core.String
: null,
);