/* Options: Date: 2025-12-06 06:19:47 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: MyLegalHandRequest.* //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 BaseGalaxyActivationRequest extends ApiServiceRequest implements IConvertible { /** * ID Number of the user making this request. */ // @ApiMember(Description="ID Number of the user making this request.", IsRequired=true) String? IdNumber; /** * Latitude of the user making this request. */ // @ApiMember(Description="Latitude of the user making this request.", IsRequired=true) double? Latitude; /** * Longitude of the user making this request. */ // @ApiMember(Description="Longitude of the user making this request.", IsRequired=true) double? Longitude; BaseGalaxyActivationRequest({this.IdNumber,this.Latitude,this.Longitude}); BaseGalaxyActivationRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); IdNumber = json['IdNumber']; Latitude = JsonConverters.toDouble(json['Latitude']); Longitude = JsonConverters.toDouble(json['Longitude']); return this; } Map toJson() => super.toJson()..addAll({ 'IdNumber': IdNumber, 'Latitude': Latitude, 'Longitude': Longitude }); getTypeName() => "BaseGalaxyActivationRequest"; 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 GalaxyActivationResponse 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; GalaxyActivationResponse({this.ProductAvailable,this.UserHasAccess}); GalaxyActivationResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); ProductAvailable = json['ProductAvailable']; UserHasAccess = json['UserHasAccess']; return this; } Map toJson() => super.toJson()..addAll({ 'ProductAvailable': ProductAvailable, 'UserHasAccess': UserHasAccess }); getTypeName() => "GalaxyActivationResponse"; TypeContext? context = _ctx; } // @Route("/galaxy/mylegalhand", "POST") class MyLegalHandRequest extends BaseGalaxyActivationRequest implements IReturn, IConvertible, IPost { MyLegalHandRequest(); MyLegalHandRequest.fromJson(Map json) : super.fromJson(json); fromMap(Map json) { super.fromMap(json); return this; } Map toJson() => super.toJson(); createResponse() => GalaxyActivationResponse(); getResponseTypeName() => "GalaxyActivationResponse"; getTypeName() => "MyLegalHandRequest"; 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), 'BaseGalaxyActivationRequest': TypeInfo(TypeOf.Class, create:() => BaseGalaxyActivationRequest()), 'ApiServiceResponse': TypeInfo(TypeOf.Class, create:() => ApiServiceResponse()), 'GalaxyActivationResponse': TypeInfo(TypeOf.Class, create:() => GalaxyActivationResponse()), 'MyLegalHandRequest': TypeInfo(TypeOf.Class, create:() => MyLegalHandRequest()), });