/* Options: Date: 2024-12-22 21:44:57 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: QueryTodos.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart,dart:typed_data */ import 'package:servicestack/servicestack.dart'; import 'dart:typed_data'; class Todo implements IConvertible { int? id; String? text; bool? isFinished; Todo({this.id,this.text,this.isFinished}); Todo.fromJson(Map json) { fromMap(json); } fromMap(Map json) { id = json['id']; text = json['text']; isFinished = json['isFinished']; return this; } Map toJson() => { 'id': id, 'text': text, 'isFinished': isFinished }; getTypeName() => "Todo"; TypeContext? context = _ctx; } // @Route("/todos", "GET") class QueryTodos extends QueryData implements IReturn>, IConvertible, IGet { int? id; List? ids; String? textContains; QueryTodos({this.id,this.ids,this.textContains}); QueryTodos.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); id = json['id']; ids = JsonConverters.fromJson(json['ids'],'List',context!); textContains = json['textContains']; return this; } Map toJson() => super.toJson()..addAll({ 'id': id, 'ids': JsonConverters.toJson(ids,'List',context!), 'textContains': textContains }); createResponse() => QueryResponse(); getResponseTypeName() => "QueryResponse"; getTypeName() => "QueryTodos"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'blazor_gallery.servicestack.net', types: { 'Todo': TypeInfo(TypeOf.Class, create:() => Todo()), 'QueryResponse': TypeInfo(TypeOf.Class, create:() => QueryResponse()), 'QueryTodos': TypeInfo(TypeOf.Class, create:() => QueryTodos()), 'List': TypeInfo(TypeOf.Class, create:() => []), });