/* Options: Date: 2025-12-06 06:19: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: PickMeUpHistoryRequest.* //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 BookingLocation implements IConvertible { /** * Latitude of the pickup/drop-off location. */ // @ApiMember(Description="Latitude of the pickup/drop-off location.", IsRequired=true) double? Latitude; /** * Longitude of the pickup/drop-off location. */ // @ApiMember(Description="Longitude of the pickup/drop-off location.", IsRequired=true) double? Longitude; /** * Address of the pickup/drop-off location. */ // @ApiMember(Description="Address of the pickup/drop-off location.", IsRequired=true) String? Address; BookingLocation({this.Latitude,this.Longitude,this.Address}); BookingLocation.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Latitude = JsonConverters.toDouble(json['Latitude']); Longitude = JsonConverters.toDouble(json['Longitude']); Address = json['Address']; return this; } Map toJson() => { 'Latitude': Latitude, 'Longitude': Longitude, 'Address': Address }; getTypeName() => "BookingLocation"; TypeContext? context = _ctx; } class PickMeUpBookingItem implements IConvertible { /** * Date and Time of the pickup in ISO 8601 format. */ // @ApiMember(Description="Date and Time of the pickup in ISO 8601 format.") String? BookingTime; /** * The booking reference number returned by the service provider. To be shown to the client. */ // @ApiMember(Description="The booking reference number returned by the service provider. To be shown to the client.") String? ReferenceNumber; /** * Date and Time the booking request was made in ISO 8601 format. */ // @ApiMember(Description="Date and Time the booking request was made in ISO 8601 format.") String? DateCreated; /** * Status of the booking as returned by the service provider. */ // @ApiMember(Description="Status of the booking as returned by the service provider.") String? Status; /** * Name of contact person at pickup. */ // @ApiMember(Description="Name of contact person at pickup.", IsRequired=true) String? ContactName; /** * Contact number of contact person at pickup. */ // @ApiMember(Description="Contact number of contact person at pickup.", IsRequired=true) String? ContactNumber; /** * The number of people to be picked up. */ // @ApiMember(Description="The number of people to be picked up.", IsRequired=true) String? PassengerCount; /** * The location details of where the clients are to be picked up. */ // @ApiMember(Description="The location details of where the clients are to be picked up.", IsRequired=true) BookingLocation? PickupLocation; /** * The location details of where the clients are to be dropped off. */ // @ApiMember(Description="The location details of where the clients are to be dropped off.", IsRequired=true) BookingLocation? DropoffLocation; PickMeUpBookingItem({this.BookingTime,this.ReferenceNumber,this.DateCreated,this.Status,this.ContactName,this.ContactNumber,this.PassengerCount,this.PickupLocation,this.DropoffLocation}); PickMeUpBookingItem.fromJson(Map json) { fromMap(json); } fromMap(Map json) { BookingTime = json['BookingTime']; ReferenceNumber = json['ReferenceNumber']; DateCreated = json['DateCreated']; Status = json['Status']; ContactName = json['ContactName']; ContactNumber = json['ContactNumber']; PassengerCount = json['PassengerCount']; PickupLocation = JsonConverters.fromJson(json['PickupLocation'],'BookingLocation',context!); DropoffLocation = JsonConverters.fromJson(json['DropoffLocation'],'BookingLocation',context!); return this; } Map toJson() => { 'BookingTime': BookingTime, 'ReferenceNumber': ReferenceNumber, 'DateCreated': DateCreated, 'Status': Status, 'ContactName': ContactName, 'ContactNumber': ContactNumber, 'PassengerCount': PassengerCount, 'PickupLocation': JsonConverters.toJson(PickupLocation,'BookingLocation',context!), 'DropoffLocation': JsonConverters.toJson(DropoffLocation,'BookingLocation',context!) }; getTypeName() => "PickMeUpBookingItem"; 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 PickMeUpHistoryResponse extends ApiServiceResponse implements IConvertible { /** * Is the requested product set up and enabled on Galaxy. */ // @ApiMember(Description="Is the requested product set up and enabled on Galaxy.") bool? ProductAvailable; /** * Does the user have access to this product, based on their Galaxy profile. */ // @ApiMember(Description="Does the user have access to this product, based on their Galaxy profile.") bool? UserHasAccess; /** * List of booking history items for the Pick Me Up service. */ // @ApiMember(Description="List of booking history items for the Pick Me Up service.") List? PickMeUpHistory; /** * List of booking history items for the Take Me Home service. */ // @ApiMember(Description="List of booking history items for the Take Me Home service.") List? TakeMeHomeHistory; PickMeUpHistoryResponse({this.ProductAvailable,this.UserHasAccess,this.PickMeUpHistory,this.TakeMeHomeHistory}); PickMeUpHistoryResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); ProductAvailable = json['ProductAvailable']; UserHasAccess = json['UserHasAccess']; PickMeUpHistory = JsonConverters.fromJson(json['PickMeUpHistory'],'List',context!); TakeMeHomeHistory = JsonConverters.fromJson(json['TakeMeHomeHistory'],'List',context!); return this; } Map toJson() => super.toJson()..addAll({ 'ProductAvailable': ProductAvailable, 'UserHasAccess': UserHasAccess, 'PickMeUpHistory': JsonConverters.toJson(PickMeUpHistory,'List',context!), 'TakeMeHomeHistory': JsonConverters.toJson(TakeMeHomeHistory,'List',context!) }); getTypeName() => "PickMeUpHistoryResponse"; TypeContext? context = _ctx; } // @Route("/pickmeup/history", "GET, POST") class PickMeUpHistoryRequest extends ApiServiceRequest implements IReturn, IConvertible, IGet { /** * ID Number of the user's history to retrieve. */ // @ApiMember(Description="ID Number of the user's history to retrieve.", IsRequired=true) String? IdNumber; PickMeUpHistoryRequest({this.IdNumber}); PickMeUpHistoryRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); IdNumber = json['IdNumber']; return this; } Map toJson() => super.toJson()..addAll({ 'IdNumber': IdNumber }); createResponse() => PickMeUpHistoryResponse(); getResponseTypeName() => "PickMeUpHistoryResponse"; getTypeName() => "PickMeUpHistoryRequest"; 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), 'BookingLocation': TypeInfo(TypeOf.Class, create:() => BookingLocation()), 'PickMeUpBookingItem': TypeInfo(TypeOf.Class, create:() => PickMeUpBookingItem()), 'ApiServiceResponse': TypeInfo(TypeOf.Class, create:() => ApiServiceResponse()), 'PickMeUpHistoryResponse': TypeInfo(TypeOf.Class, create:() => PickMeUpHistoryResponse()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'PickMeUpHistoryRequest': TypeInfo(TypeOf.Class, create:() => PickMeUpHistoryRequest()), });