/* Options: Date: 2025-09-14 05:51:42 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: GetZone.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; // @DataContract class Zone implements IConvertible { // @DataMember String? id; // @DataMember String? name; // @DataMember String? note; // @DataMember String? icon; // @DataMember String? polygon; Zone({this.id,this.name,this.note,this.icon,this.polygon}); Zone.fromJson(Map json) { fromMap(json); } fromMap(Map json) { id = json['id']; name = json['name']; note = json['note']; icon = json['icon']; polygon = json['polygon']; return this; } Map toJson() => { 'id': id, 'name': name, 'note': note, 'icon': icon, 'polygon': polygon }; getTypeName() => "Zone"; TypeContext? context = _ctx; } // @DataContract class GetZoneResponse implements IConvertible { // @DataMember List? list; // @DataMember ResponseStatus? responseStatus; GetZoneResponse({this.list,this.responseStatus}); GetZoneResponse.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() => "GetZoneResponse"; TypeContext? context = _ctx; } // @Route("/GetZone", "GET POST") // @Route("/GetZone/{Id}", "GET POST") // @Route("/Zone", "GET") // @Route("/Zone/{Id}", "GET") // @DataContract class GetZone implements IReturn, IConvertible, IPost { // @DataMember String? id; GetZone({this.id}); GetZone.fromJson(Map json) { fromMap(json); } fromMap(Map json) { id = json['id']; return this; } Map toJson() => { 'id': id }; createResponse() => GetZoneResponse(); getResponseTypeName() => "GetZoneResponse"; getTypeName() => "GetZone"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'api.trackunit.com', types: { 'Zone': TypeInfo(TypeOf.Class, create:() => Zone()), 'GetZoneResponse': TypeInfo(TypeOf.Class, create:() => GetZoneResponse()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'GetZone': TypeInfo(TypeOf.Class, create:() => GetZone()), });