/* Options: Date: 2024-05-09 04:28:46 Version: 8.23 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://test.servicestack.net //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: QueryRockstars.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart,dart:typed_data */ import 'package:servicestack/servicestack.dart'; import 'dart:typed_data'; class Rockstar implements IConvertible { int? id; String? firstName; String? lastName; int? age; Rockstar({this.id,this.firstName,this.lastName,this.age}); Rockstar.fromJson(Map json) { fromMap(json); } fromMap(Map json) { id = json['id']; firstName = json['firstName']; lastName = json['lastName']; age = json['age']; return this; } Map toJson() => { 'id': id, 'firstName': firstName, 'lastName': lastName, 'age': age }; getTypeName() => "Rockstar"; TypeContext? context = _ctx; } // @Route("/rockstars", "GET") class QueryRockstars extends QueryDb implements IReturn>, IConvertible, IGet { QueryRockstars(); QueryRockstars.fromJson(Map json) : super.fromJson(json); fromMap(Map json) { super.fromMap(json); return this; } Map toJson() => super.toJson(); createResponse() => QueryResponse(); getResponseTypeName() => "QueryResponse"; getTypeName() => "QueryRockstars"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'test.servicestack.net', types: { 'Rockstar': TypeInfo(TypeOf.Class, create:() => Rockstar()), 'QueryResponse': TypeInfo(TypeOf.Class, create:() => QueryResponse()), 'QueryRockstars': TypeInfo(TypeOf.Class, create:() => QueryRockstars()), 'List': TypeInfo(TypeOf.Class, create:() => []), });