/* Options: Date: 2026-09-02 15:49:12 Version: 10.09 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://test.servicestack.net //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: GetItems.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class Item implements IConvertible { String name = ""; String description = ""; Item({this.name="",this.description=""}); Item.fromJson(Map json) { fromMap(json); } fromMap(Map json) { name = json['name'] ?? ""; description = json['description'] ?? ""; return this; } Map toJson() => { 'name': name, 'description': description }; getTypeName() => "Item"; TypeContext? context = _ctx; } class Items implements IConvertible { List results = []; Items({this.results=const []}); Items.fromJson(Map json) { fromMap(json); } fromMap(Map json) { results = JsonConverters.fromJson(json['results'],'List',context!) ?? []; return this; } Map toJson() => { 'results': JsonConverters.toJson(results,'List',context!) }; getTypeName() => "Items"; TypeContext? context = _ctx; } class GetItems implements IReturn, IConvertible, IGet { GetItems(); GetItems.fromJson(Map json) : super(); fromMap(Map json) { return this; } Map toJson() => {}; createResponse() => Items(); getResponseTypeName() => "Items"; getTypeName() => "GetItems"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'test.servicestack.net', types: { 'Item': TypeInfo(TypeOf.Class, create:() => Item()), 'Items': TypeInfo(TypeOf.Class, create:() => Items()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'GetItems': TypeInfo(TypeOf.Class, create:() => GetItems()), });