struct

UserDTO

Inherits JSON::Serializable < Struct < Value < Object

Constructors

new(user : User)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Class methods

to_DTOs(users : Array(User)) : Array(UserDTO)
Source

Instance methods

email
Source
email=(email : String)
Source
id=(id : Int32 | Nil)
Source
name
Source
name=(name : String)
Source