generating
To generate a serializer, use the cli command provided:
yarn psy g:serializer user email:string id:string created_at:datetime
import { DateTime } from 'luxon'
import { Attribute, RendersOne, DreamSerializer } from '@rvoh/dream'
export default class UserSerializer<
DataType extends User,
> extends DreamSerializer<DataType> {
@Attribute('string')
public email: string
@Attribute('string')
public id: string
@Attribute('datetime')
public createdAt: DateTime
}