/* Options: Date: 2025-12-06 06:21:50 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: AddDependent.* //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 AddDependentResponse extends ApiServiceResponse implements IConvertible { /** * Updated list of the user's dependents. */ // @ApiMember(Description="Updated list of the user's dependents.") List? Dependents; AddDependentResponse({this.Dependents}); AddDependentResponse.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() => "AddDependentResponse"; TypeContext? context = _ctx; } // @Route("/dependent", "POST") class AddDependent extends ApiServiceRequest implements IReturn, IConvertible, IPost { /** * 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; /** * Data of the dependent. */ // @ApiMember(Description="Data of the dependent.", IsRequired=true) DependentData? DependentData; AddDependent({this.IdNumber,this.DependentData}); AddDependent.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); IdNumber = json['IdNumber']; DependentData = JsonConverters.fromJson(json['DependentData'],'DependentData',context!); return this; } Map toJson() => super.toJson()..addAll({ 'IdNumber': IdNumber, 'DependentData': JsonConverters.toJson(DependentData,'DependentData',context!) }); createResponse() => AddDependentResponse(); getResponseTypeName() => "AddDependentResponse"; getTypeName() => "AddDependent"; 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()), 'AddDependentResponse': TypeInfo(TypeOf.Class, create:() => AddDependentResponse()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'AddDependent': TypeInfo(TypeOf.Class, create:() => AddDependent()), });