gravitino.dto.responses.user_response.UserResponse¶
- class gravitino.dto.responses.user_response.UserResponse(_code: int, _user: UserDTO | None = None)¶
Bases:
BaseResponseRepresents a response for a user.
Methods
__init__(_code[, _user])code()from_dict(kvs, *[, infer_missing])from_json(s, *[, parse_float, parse_int, ...])schema(*[, infer_missing, only, exclude, ...])to_dict([encode_json])to_json(*[, skipkeys, ensure_ascii, ...])user()validate()Validates the response code.
Attributes
dataclass_json_config- validate() None¶
Validates the response code. @throws IllegalArgumentException if code value is negative.