User.fromJson constructor

User.fromJson(
  1. Map json_
)

Implementation

User.fromJson(core.Map json_)
    : this(
        assignedUserRoles: json_.containsKey('assignedUserRoles')
            ? (json_['assignedUserRoles'] as core.List)
                .map((value) => AssignedUserRole.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        displayName: json_.containsKey('displayName')
            ? json_['displayName'] as core.String
            : null,
        email:
            json_.containsKey('email') ? json_['email'] as core.String : null,
        lastLoginTime: json_.containsKey('lastLoginTime')
            ? json_['lastLoginTime'] as core.String
            : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        userId: json_.containsKey('userId')
            ? json_['userId'] as core.String
            : null,
      );