/* Options: Date: 2025-01-08 03:22:51 Version: 8.53 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://blazordiffusion.com //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: CreateAlbumLike.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class AlbumLike implements IConvertible { int? id; // @References(typeof(Album)) int? albumId; int? appUserId; DateTime? createdDate; AlbumLike({this.id,this.albumId,this.appUserId,this.createdDate}); AlbumLike.fromJson(Map json) { fromMap(json); } fromMap(Map json) { id = json['id']; albumId = json['albumId']; appUserId = json['appUserId']; createdDate = JsonConverters.fromJson(json['createdDate'],'DateTime',context!); return this; } Map toJson() => { 'id': id, 'albumId': albumId, 'appUserId': appUserId, 'createdDate': JsonConverters.toJson(createdDate,'DateTime',context!) }; getTypeName() => "AlbumLike"; TypeContext? context = _ctx; } // @ValidateRequest(Validator="IsAuthenticated") class CreateAlbumLike implements IReturn, ICreateDb, IConvertible, IPost { // @Validate(Validator="GreaterThan(0)") int? albumId; CreateAlbumLike({this.albumId}); CreateAlbumLike.fromJson(Map json) { fromMap(json); } fromMap(Map json) { albumId = json['albumId']; return this; } Map toJson() => { 'albumId': albumId }; createResponse() => IdResponse(); getResponseTypeName() => "IdResponse"; getTypeName() => "CreateAlbumLike"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'blazordiffusion.com', types: { 'AlbumLike': TypeInfo(TypeOf.Class, create:() => AlbumLike()), 'CreateAlbumLike': TypeInfo(TypeOf.Class, create:() => CreateAlbumLike()), });