/* Options: Date: 2025-12-06 08:51:23 Version: 8.80 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://api.dev.dynamics.trendsic.com //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: StationsRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart,dart:typed_data */ import 'package:servicestack/servicestack.dart'; import 'dart:typed_data'; class Station implements IConvertible { String? Id; String? LocationId; String? LocationName; String? StationName; bool? Active; Station({this.Id,this.LocationId,this.LocationName,this.StationName,this.Active}); Station.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Id = json['Id']; LocationId = json['LocationId']; LocationName = json['LocationName']; StationName = json['StationName']; Active = json['Active']; return this; } Map toJson() => { 'Id': Id, 'LocationId': LocationId, 'LocationName': LocationName, 'StationName': StationName, 'Active': Active }; getTypeName() => "Station"; TypeContext? context = _ctx; } class StationsResponse implements IConvertible { ResponseStatus? ResponseStatus; List? Stations = []; StationsResponse({this.ResponseStatus,this.Stations}); StationsResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { ResponseStatus = JsonConverters.fromJson(json['ResponseStatus'],'ResponseStatus',context!); Stations = JsonConverters.fromJson(json['Stations'],'List',context!); return this; } Map toJson() => { 'ResponseStatus': JsonConverters.toJson(ResponseStatus,'ResponseStatus',context!), 'Stations': JsonConverters.toJson(Stations,'List',context!) }; getTypeName() => "StationsResponse"; TypeContext? context = _ctx; } // @Route("/v1/Stations", "GET,POST,PUT,DELETE,OPTIONS") // @Route("/v1/Stations/{Id}", "GET,POST,PUT,DELETE,OPTIONS") // @Route("/v1/StationsByLocation/{LocationId}", "GET,OPTIONS") class StationsRequest implements IReturn, IConvertible, IPost { String? Id; String? LocationId; List? Stations = []; StationsRequest({this.Id,this.LocationId,this.Stations}); StationsRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Id = json['Id']; LocationId = json['LocationId']; Stations = JsonConverters.fromJson(json['Stations'],'List',context!); return this; } Map toJson() => { 'Id': Id, 'LocationId': LocationId, 'Stations': JsonConverters.toJson(Stations,'List',context!) }; createResponse() => StationsResponse(); getResponseTypeName() => "StationsResponse"; getTypeName() => "StationsRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'api.dev.dynamics.trendsic.com', types: { 'Station': TypeInfo(TypeOf.Class, create:() => Station()), 'StationsResponse': TypeInfo(TypeOf.Class, create:() => StationsResponse()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'StationsRequest': TypeInfo(TypeOf.Class, create:() => StationsRequest()), });