/* Options: Date: 2024-12-22 21:36:27 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: QueryGameItem.* //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 QueryGameItem extends QueryDb implements IReturn>, IConvertible, IGet { String? name; QueryGameItem({this.name}); QueryGameItem.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); name = json['name']; return this; } Map toJson() => super.toJson()..addAll({ 'name': name }); createResponse() => QueryResponse(); getResponseTypeName() => "QueryResponse"; getTypeName() => "QueryGameItem"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'blazor_gallery.servicestack.net', types: { 'GameItem': TypeInfo(TypeOf.Class, create:() => GameItem()), 'QueryResponse': TypeInfo(TypeOf.Class, create:() => QueryResponse()), 'QueryGameItem': TypeInfo(TypeOf.Class, create:() => QueryGameItem()), 'List': TypeInfo(TypeOf.Class, create:() => []), });