Role.fromJson constructor

Role.fromJson(
  1. Map json_
)

Implementation

Role.fromJson(core.Map json_)
    : this(
        etag: json_.containsKey('etag') ? json_['etag'] as core.String : null,
        isSuperAdminRole: json_.containsKey('isSuperAdminRole')
            ? json_['isSuperAdminRole'] as core.bool
            : null,
        isSystemRole: json_.containsKey('isSystemRole')
            ? json_['isSystemRole'] as core.bool
            : null,
        kind: json_.containsKey('kind') ? json_['kind'] as core.String : null,
        roleDescription: json_.containsKey('roleDescription')
            ? json_['roleDescription'] as core.String
            : null,
        roleId: json_.containsKey('roleId')
            ? json_['roleId'] as core.String
            : null,
        roleName: json_.containsKey('roleName')
            ? json_['roleName'] as core.String
            : null,
        rolePrivileges: json_.containsKey('rolePrivileges')
            ? (json_['rolePrivileges'] as core.List)
                .map((value) => RoleRolePrivileges.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
      );