/* Options: Date: 2025-09-14 05:51:43 Version: 8.80 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://api.trackunit.com/public //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: GetGroup.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; // @DataContract class Group implements IConvertible { // @DataMember String? id; // @DataMember String? name; // @DataMember List? units; Group({this.id,this.name,this.units}); Group.fromJson(Map json) { fromMap(json); } fromMap(Map json) { id = json['id']; name = json['name']; units = JsonConverters.fromJson(json['units'],'List',context!); return this; } Map toJson() => { 'id': id, 'name': name, 'units': JsonConverters.toJson(units,'List',context!) }; getTypeName() => "Group"; TypeContext? context = _ctx; } // @DataContract class GetGroupResponse implements IConvertible { // @DataMember List? list; // @DataMember ResponseStatus? responseStatus; GetGroupResponse({this.list,this.responseStatus}); GetGroupResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { list = JsonConverters.fromJson(json['list'],'List',context!); responseStatus = JsonConverters.fromJson(json['responseStatus'],'ResponseStatus',context!); return this; } Map toJson() => { 'list': JsonConverters.toJson(list,'List',context!), 'responseStatus': JsonConverters.toJson(responseStatus,'ResponseStatus',context!) }; getTypeName() => "GetGroupResponse"; TypeContext? context = _ctx; } // @Route("/GetGroup", "GET POST") // @Route("/GetGroup/{Id}", "GET POST") // @Route("/Group", "GET") // @Route("/Group/{Id}", "GET") // @DataContract class GetGroup implements IReturn, IConvertible, IPost { // @DataMember String? id; // @DataMember String? unitId; GetGroup({this.id,this.unitId}); GetGroup.fromJson(Map json) { fromMap(json); } fromMap(Map json) { id = json['id']; unitId = json['unitId']; return this; } Map toJson() => { 'id': id, 'unitId': unitId }; createResponse() => GetGroupResponse(); getResponseTypeName() => "GetGroupResponse"; getTypeName() => "GetGroup"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'api.trackunit.com', types: { 'Group': TypeInfo(TypeOf.Class, create:() => Group()), 'GetGroupResponse': TypeInfo(TypeOf.Class, create:() => GetGroupResponse()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'GetGroup': TypeInfo(TypeOf.Class, create:() => GetGroup()), });