/* Options: Date: 2025-12-06 06:20:45 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: DeleteDependent.* //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 DependentData implements IConvertible { /** * Dependent's Galaxy Id used for referring to or deleting. */ // @ApiMember(Description="Dependent's Galaxy Id used for referring to or deleting.", IsRequired=true) int? DependentId; /** * Dependent's first name. */ // @ApiMember(Description="Dependent's first name.", IsRequired=true) String? FirstName; /** * Dependent's surname. */ // @ApiMember(Description="Dependent's surname.", IsRequired=true) String? Surname; /** * Dependent's mobile contact number. */ // @ApiMember(Description="Dependent's mobile contact number.", IsRequired=true) String? MobileNumber; /** * Dependent's email address. */ // @ApiMember(Description="Dependent's email address.", IsRequired=true) String? Email; /** * Depdendent's ID number. */ // @ApiMember(Description="Depdendent's ID number.", IsRequired=true) String? IdNumber; DependentData({this.DependentId,this.FirstName,this.Surname,this.MobileNumber,this.Email,this.IdNumber}); DependentData.fromJson(Map json) { fromMap(json); } fromMap(Map json) { DependentId = json['DependentId']; FirstName = json['FirstName']; Surname = json['Surname']; MobileNumber = json['MobileNumber']; Email = json['Email']; IdNumber = json['IdNumber']; return this; } Map toJson() => { 'DependentId': DependentId, 'FirstName': FirstName, 'Surname': Surname, 'MobileNumber': MobileNumber, 'Email': Email, 'IdNumber': IdNumber }; getTypeName() => "DependentData"; 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 DeleteDependentResponse extends ApiServiceResponse implements IConvertible { /** * Updated list of the user's dependents. */ // @ApiMember(Description="Updated list of the user's dependents.") List? Dependents; DeleteDependentResponse({this.Dependents}); DeleteDependentResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); Dependents = JsonConverters.fromJson(json['Dependents'],'List',context!); return this; } Map toJson() => super.toJson()..addAll({ 'Dependents': JsonConverters.toJson(Dependents,'List',context!) }); getTypeName() => "DeleteDependentResponse"; TypeContext? context = _ctx; } // @Route("/dependent", "DELETE") class DeleteDependent extends ApiServiceRequest implements IReturn, IConvertible, IDelete { /** * ID Number of the primary user you wish to add a dependent onto. */ // @ApiMember(Description="ID Number of the primary user you wish to add a dependent onto.", IsRequired=true) String? IdNumber; /** * The Id of the dependent in the Galaxy system you wish to delete. */ // @ApiMember(Description="The Id of the dependent in the Galaxy system you wish to delete.", IsRequired=true) int? DependentId; DeleteDependent({this.IdNumber,this.DependentId}); DeleteDependent.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); IdNumber = json['IdNumber']; DependentId = json['DependentId']; return this; } Map toJson() => super.toJson()..addAll({ 'IdNumber': IdNumber, 'DependentId': DependentId }); createResponse() => DeleteDependentResponse(); getResponseTypeName() => "DeleteDependentResponse"; getTypeName() => "DeleteDependent"; 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), 'DependentData': TypeInfo(TypeOf.Class, create:() => DependentData()), 'ApiServiceResponse': TypeInfo(TypeOf.Class, create:() => ApiServiceResponse()), 'DeleteDependentResponse': TypeInfo(TypeOf.Class, create:() => DeleteDependentResponse()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'DeleteDependent': TypeInfo(TypeOf.Class, create:() => DeleteDependent()), });