/* Options: Date: 2024-12-22 21:52:28 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: UpdateGameItem.* //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 UpdateGameItem implements IReturn, IPatchDb, IConvertible, IPatch { // @Validate(Validator="NotEmpty") String? name; // @Validate(Validator="NotEmpty") String? description; String? imageUrl; UpdateGameItem({this.name,this.description,this.imageUrl}); UpdateGameItem.fromJson(Map json) { fromMap(json); } fromMap(Map json) { name = json['name']; description = json['description']; imageUrl = json['imageUrl']; return this; } Map toJson() => { 'name': name, 'description': description, 'imageUrl': imageUrl }; createResponse() => IdResponse(); getResponseTypeName() => "IdResponse"; getTypeName() => "UpdateGameItem"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'blazor_gallery.servicestack.net', types: { 'GameItem': TypeInfo(TypeOf.Class, create:() => GameItem()), 'UpdateGameItem': TypeInfo(TypeOf.Class, create:() => UpdateGameItem()), });