class Movie: name: str = jsonfield(serializer_class=UpperStringSerializer) year: int
class Movie: name: str year: int rating: Rating = jsonfield(serializer_class=RatingSerializer)
class User: id: int name: str last_login: datetime = jsonfield(serializer_args=("%y/%m/%d %H:%M:%S", )) birthday: date = jsonfield(serializer_args=("%y/%m/%d", )) local_time: time = jsonfield(serializer_args=("%I:%M %p", ))
class User: id: int name: str last_login: datetime.timestamp = jsonfield( serializer_kwargs={"timezone": timezone.utc})
class User: id: int = jsonfield("Id") name: str = jsonfield("Name")