/* Options: Date: 2024-12-22 21:28:47 Version: 8.51 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://blazor-gallery.servicestack.net //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: CreatePlaylists.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart,dart:typed_data */ import 'package:servicestack/servicestack.dart'; import 'dart:typed_data'; class Playlists implements IConvertible { int? playlistId; String? name; Playlists({this.playlistId,this.name}); Playlists.fromJson(Map json) { fromMap(json); } fromMap(Map json) { playlistId = json['playlistId']; name = json['name']; return this; } Map toJson() => { 'playlistId': playlistId, 'name': name }; getTypeName() => "Playlists"; TypeContext? context = _ctx; } // @Route("/playlists", "POST") class CreatePlaylists implements IReturn, IPost, ICreateDb, IConvertible { String? name; CreatePlaylists({this.name}); CreatePlaylists.fromJson(Map json) { fromMap(json); } fromMap(Map json) { name = json['name']; return this; } Map toJson() => { 'name': name }; createResponse() => IdResponse(); getResponseTypeName() => "IdResponse"; getTypeName() => "CreatePlaylists"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'blazor_gallery.servicestack.net', types: { 'Playlists': TypeInfo(TypeOf.Class, create:() => Playlists()), 'CreatePlaylists': TypeInfo(TypeOf.Class, create:() => CreatePlaylists()), });