/* Options: Date: 2024-05-13 12:28:38 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: StoreRockstars.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart,dart:typed_data,dart:collection */ import 'package:servicestack/servicestack.dart'; import 'dart:typed_data'; import 'dart:collection'; 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", "POST") class StoreRockstars extends ListBase implements IReturn, IConvertible, IPost { final List l = []; set length(int newLength) { l.length = newLength; } int get length => l.length; Rockstar operator [](int index) => l[index]; void operator []=(int index, Rockstar value) { l[index] = value; } StoreRockstars(); StoreRockstars.fromJson(Map json) : super(); fromMap(Map json) { return this; } Map toJson() => {}; createResponse() => StoreRockstars(); getResponseTypeName() => "StoreRockstars"; getTypeName() => "StoreRockstars"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'test.servicestack.net', types: { 'Rockstar': TypeInfo(TypeOf.Class, create:() => Rockstar()), 'StoreRockstars': TypeInfo(TypeOf.Class, create:() => StoreRockstars()), });