MemberRelation.fromJson constructor

MemberRelation.fromJson(
  1. Map json_
)

Implementation

MemberRelation.fromJson(core.Map json_)
    : this(
        member: json_.containsKey('member')
            ? json_['member'] as core.String
            : null,
        preferredMemberKey: json_.containsKey('preferredMemberKey')
            ? (json_['preferredMemberKey'] as core.List)
                .map((value) => EntityKey.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : 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,
      );