/* Options: Date: 2024-12-22 21:58:33 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: DeleteGameItem.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart,dart:typed_data */ import 'package:servicestack/servicestack.dart'; import 'dart:typed_data'; class GameItem extends AuditBase implements IConvertible { // @StringLength(50) String? name; String? imageUrl; // @StringLength(2147483647) String? description; DateTime? dateAdded; GameItem({this.name,this.imageUrl,this.description,this.dateAdded}); GameItem.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); name = json['name']; imageUrl = json['imageUrl']; description = json['description']; dateAdded = JsonConverters.fromJson(json['dateAdded'],'DateTime',context!); return this; } Map toJson() => super.toJson()..addAll({ 'name': name, 'imageUrl': imageUrl, 'description': description, 'dateAdded': JsonConverters.toJson(dateAdded,'DateTime',context!) }); getTypeName() => "GameItem"; TypeContext? context = _ctx; } class DeleteGameItem implements IReturnVoid, IDeleteDb, IConvertible, IDelete { // @Validate(Validator="NotEmpty") String? name; DeleteGameItem({this.name}); DeleteGameItem.fromJson(Map json) { fromMap(json); } fromMap(Map json) { name = json['name']; return this; } Map toJson() => { 'name': name }; createResponse() {} getTypeName() => "DeleteGameItem"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'blazor_gallery.servicestack.net', types: { 'GameItem': TypeInfo(TypeOf.Class, create:() => GameItem()), 'DeleteGameItem': TypeInfo(TypeOf.Class, create:() => DeleteGameItem()), });