/* Options: Date: 2025-12-06 06:22:44 Version: 8.0 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://galaxymobile.api.client.prod.86degrees.com //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: PulsitModuleTripHistoryRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class ApiServiceRequest implements IServiceRequest, IHasApiKey, IConvertible { /** * The API Key required for authentication */ // @ApiMember(DataType="string", Description="The API Key required for authentication", IsRequired=true) String? ApiKey; ApiServiceRequest({this.ApiKey}); ApiServiceRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { ApiKey = json['ApiKey']; return this; } Map toJson() => { 'ApiKey': ApiKey }; getTypeName() => "ApiServiceRequest"; TypeContext? context = _ctx; } abstract class IServiceRequest { } abstract class IHasApiKey { String? ApiKey; } class PulsitTripHistoryItem implements IConvertible { String? TripNumber; String? StartPulsitId; DateTime? StartEventTime; double? StartLatitude; double? StartLongitude; String? StartAddress; String? StopPulsitId; DateTime? StopEventTime; double? StopLatitude; double? StopLongitude; String? StopAddress; double? TripMinutes; PulsitTripHistoryItem({this.TripNumber,this.StartPulsitId,this.StartEventTime,this.StartLatitude,this.StartLongitude,this.StartAddress,this.StopPulsitId,this.StopEventTime,this.StopLatitude,this.StopLongitude,this.StopAddress,this.TripMinutes}); PulsitTripHistoryItem.fromJson(Map json) { fromMap(json); } fromMap(Map json) { TripNumber = json['TripNumber']; StartPulsitId = json['StartPulsitId']; StartEventTime = JsonConverters.fromJson(json['StartEventTime'],'DateTime',context!); StartLatitude = JsonConverters.toDouble(json['StartLatitude']); StartLongitude = JsonConverters.toDouble(json['StartLongitude']); StartAddress = json['StartAddress']; StopPulsitId = json['StopPulsitId']; StopEventTime = JsonConverters.fromJson(json['StopEventTime'],'DateTime',context!); StopLatitude = JsonConverters.toDouble(json['StopLatitude']); StopLongitude = JsonConverters.toDouble(json['StopLongitude']); StopAddress = json['StopAddress']; TripMinutes = JsonConverters.toDouble(json['TripMinutes']); return this; } Map toJson() => { 'TripNumber': TripNumber, 'StartPulsitId': StartPulsitId, 'StartEventTime': JsonConverters.toJson(StartEventTime,'DateTime',context!), 'StartLatitude': StartLatitude, 'StartLongitude': StartLongitude, 'StartAddress': StartAddress, 'StopPulsitId': StopPulsitId, 'StopEventTime': JsonConverters.toJson(StopEventTime,'DateTime',context!), 'StopLatitude': StopLatitude, 'StopLongitude': StopLongitude, 'StopAddress': StopAddress, 'TripMinutes': TripMinutes }; getTypeName() => "PulsitTripHistoryItem"; TypeContext? context = _ctx; } class ApiServiceResponse implements IServiceResponse, IConvertible { String? Description; String? Heading; bool? WasSuccessful; dynamic? ModelState; ApiServiceResponse({this.Description,this.Heading,this.WasSuccessful,this.ModelState}); ApiServiceResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Description = json['Description']; Heading = json['Heading']; WasSuccessful = json['WasSuccessful']; ModelState = JsonConverters.fromJson(json['ModelState'],'dynamic',context!); return this; } Map toJson() => { 'Description': Description, 'Heading': Heading, 'WasSuccessful': WasSuccessful, 'ModelState': JsonConverters.toJson(ModelState,'dynamic',context!) }; getTypeName() => "ApiServiceResponse"; TypeContext? context = _ctx; } class PulsitModuleTripHistoryResponse extends ApiServiceResponse implements IConvertible { List? Trips; PulsitModuleTripHistoryResponse({this.Trips}); PulsitModuleTripHistoryResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); Trips = JsonConverters.fromJson(json['Trips'],'List',context!); return this; } Map toJson() => super.toJson()..addAll({ 'Trips': JsonConverters.toJson(Trips,'List',context!) }); getTypeName() => "PulsitModuleTripHistoryResponse"; TypeContext? context = _ctx; } // @Route("/pulsit/moduletriphistory", "GET") class PulsitModuleTripHistoryRequest extends ApiServiceRequest implements IReturn, IConvertible, IGet { String? PulsitModuleId; String? StartDate; String? EndDate; PulsitModuleTripHistoryRequest({this.PulsitModuleId,this.StartDate,this.EndDate}); PulsitModuleTripHistoryRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); PulsitModuleId = json['PulsitModuleId']; StartDate = json['StartDate']; EndDate = json['EndDate']; return this; } Map toJson() => super.toJson()..addAll({ 'PulsitModuleId': PulsitModuleId, 'StartDate': StartDate, 'EndDate': EndDate }); createResponse() => PulsitModuleTripHistoryResponse(); getResponseTypeName() => "PulsitModuleTripHistoryResponse"; getTypeName() => "PulsitModuleTripHistoryRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'galaxymobile.api.client.prod.86degrees.com', types: { 'ApiServiceRequest': TypeInfo(TypeOf.Class, create:() => ApiServiceRequest()), 'IServiceRequest': TypeInfo(TypeOf.Interface), 'IHasApiKey': TypeInfo(TypeOf.Interface), 'PulsitTripHistoryItem': TypeInfo(TypeOf.Class, create:() => PulsitTripHistoryItem()), 'ApiServiceResponse': TypeInfo(TypeOf.Class, create:() => ApiServiceResponse()), 'PulsitModuleTripHistoryResponse': TypeInfo(TypeOf.Class, create:() => PulsitModuleTripHistoryResponse()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'PulsitModuleTripHistoryRequest': TypeInfo(TypeOf.Class, create:() => PulsitModuleTripHistoryRequest()), });