/* Options: Date: 2025-12-06 06:19:46 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: ProtectMeUpdateLocationRequest.* //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 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 ProtectMeActivationResponse 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; /** * The ID of the panic log. This is the ID returned by the panic provider. Used to get panic detail later. */ // @ApiMember(Description="The ID of the panic log. This is the ID returned by the panic provider. Used to get panic detail later.") int? PanicId; ProtectMeActivationResponse({this.ProductAvailable,this.UserHasAccess,this.PanicId}); ProtectMeActivationResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); ProductAvailable = json['ProductAvailable']; UserHasAccess = json['UserHasAccess']; PanicId = json['PanicId']; return this; } Map toJson() => super.toJson()..addAll({ 'ProductAvailable': ProductAvailable, 'UserHasAccess': UserHasAccess, 'PanicId': PanicId }); getTypeName() => "ProtectMeActivationResponse"; TypeContext? context = _ctx; } // @Route("/protectme/location", "POST") class ProtectMeUpdateLocationRequest extends ApiServiceRequest implements IReturn, IConvertible, IPost { /** * The ID of the panic log. This is the ID returned by the panic provider when the service was activated. */ // @ApiMember(Description="The ID of the panic log. This is the ID returned by the panic provider when the service was activated.", IsRequired=true) int? PanicId; /** * Latitude of the panic location. */ // @ApiMember(Description="Latitude of the panic location.", IsRequired=true) double? Latitude; /** * Longitude of the panic location. */ // @ApiMember(Description="Longitude of the panic location.", IsRequired=true) double? Longitude; ProtectMeUpdateLocationRequest({this.PanicId,this.Latitude,this.Longitude}); ProtectMeUpdateLocationRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); PanicId = json['PanicId']; Latitude = JsonConverters.toDouble(json['Latitude']); Longitude = JsonConverters.toDouble(json['Longitude']); return this; } Map toJson() => super.toJson()..addAll({ 'PanicId': PanicId, 'Latitude': Latitude, 'Longitude': Longitude }); createResponse() => ProtectMeActivationResponse(); getResponseTypeName() => "ProtectMeActivationResponse"; getTypeName() => "ProtectMeUpdateLocationRequest"; 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), 'ApiServiceResponse': TypeInfo(TypeOf.Class, create:() => ApiServiceResponse()), 'ProtectMeActivationResponse': TypeInfo(TypeOf.Class, create:() => ProtectMeActivationResponse()), 'ProtectMeUpdateLocationRequest': TypeInfo(TypeOf.Class, create:() => ProtectMeUpdateLocationRequest()), });