/* Options: Date: 2026-01-20 17:59:21 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: UserLoginRequest.* //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 IntegrationProviderType { static const IntegrationProviderType None = const IntegrationProviderType._(0); static const IntegrationProviderType EA = const IntegrationProviderType._(1); static const IntegrationProviderType IlluminaHubProtectMe = const IntegrationProviderType._(2); static const IntegrationProviderType MyLegalHand = const IntegrationProviderType._(3); static const IntegrationProviderType AccidentAngels = const IntegrationProviderType._(4); static const IntegrationProviderType EmergencyServices = const IntegrationProviderType._(5); static const IntegrationProviderType MightyMobile = const IntegrationProviderType._(6); static const IntegrationProviderType Pulsit = const IntegrationProviderType._(7); static const IntegrationProviderType Bolt = const IntegrationProviderType._(8); final int _value; const IntegrationProviderType._(this._value); int get value => _value; static List get values => const [None,EA,IlluminaHubProtectMe,MyLegalHand,AccidentAngels,EmergencyServices,MightyMobile,Pulsit,Bolt]; } class UserProductAttachmentData implements IConvertible { String? FileName; String? MainFileUrl; String? ThumbnailUrl; bool? IsVideo; bool? IsImage; bool? IsPdf; UserProductAttachmentData({this.FileName,this.MainFileUrl,this.ThumbnailUrl,this.IsVideo,this.IsImage,this.IsPdf}); UserProductAttachmentData.fromJson(Map json) { fromMap(json); } fromMap(Map json) { FileName = json['FileName']; MainFileUrl = json['MainFileUrl']; ThumbnailUrl = json['ThumbnailUrl']; IsVideo = json['IsVideo']; IsImage = json['IsImage']; IsPdf = json['IsPdf']; return this; } Map toJson() => { 'FileName': FileName, 'MainFileUrl': MainFileUrl, 'ThumbnailUrl': ThumbnailUrl, 'IsVideo': IsVideo, 'IsImage': IsImage, 'IsPdf': IsPdf }; getTypeName() => "UserProductAttachmentData"; TypeContext? context = _ctx; } class UserProductData implements IConvertible { IntegrationProviderType? IntegrationType; int? ProductId; String? Name; String? NameAfrikaans; String? DashImageUrl; String? ActionUrl; List? Attachments; String? DescriptionEng; String? SummaryEng; String? DescriptionAfr; String? SummaryAfr; UserProductData({this.IntegrationType,this.ProductId,this.Name,this.NameAfrikaans,this.DashImageUrl,this.ActionUrl,this.Attachments,this.DescriptionEng,this.SummaryEng,this.DescriptionAfr,this.SummaryAfr}); UserProductData.fromJson(Map json) { fromMap(json); } fromMap(Map json) { IntegrationType = JsonConverters.fromJson(json['IntegrationType'],'IntegrationProviderType',context!); ProductId = json['ProductId']; Name = json['Name']; NameAfrikaans = json['NameAfrikaans']; DashImageUrl = json['DashImageUrl']; ActionUrl = json['ActionUrl']; Attachments = JsonConverters.fromJson(json['Attachments'],'List',context!); DescriptionEng = json['DescriptionEng']; SummaryEng = json['SummaryEng']; DescriptionAfr = json['DescriptionAfr']; SummaryAfr = json['SummaryAfr']; return this; } Map toJson() => { 'IntegrationType': JsonConverters.toJson(IntegrationType,'IntegrationProviderType',context!), 'ProductId': ProductId, 'Name': Name, 'NameAfrikaans': NameAfrikaans, 'DashImageUrl': DashImageUrl, 'ActionUrl': ActionUrl, 'Attachments': JsonConverters.toJson(Attachments,'List',context!), 'DescriptionEng': DescriptionEng, 'SummaryEng': SummaryEng, 'DescriptionAfr': DescriptionAfr, 'SummaryAfr': SummaryAfr }; getTypeName() => "UserProductData"; 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 UserLoginResponse extends ApiServiceResponse implements IConvertible { /** * List of products the user has access to. */ // @ApiMember(Description="List of products the user has access to.") List? UserProductInformation; /** * List of all dependents linked to this user. */ // @ApiMember(Description="List of all dependents linked to this user.") List? Dependents; UserLoginResponse({this.UserProductInformation,this.Dependents}); UserLoginResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); UserProductInformation = JsonConverters.fromJson(json['UserProductInformation'],'List',context!); Dependents = JsonConverters.fromJson(json['Dependents'],'List',context!); return this; } Map toJson() => super.toJson()..addAll({ 'UserProductInformation': JsonConverters.toJson(UserProductInformation,'List',context!), 'Dependents': JsonConverters.toJson(Dependents,'List',context!) }); getTypeName() => "UserLoginResponse"; TypeContext? context = _ctx; } // @Route("/user/login", "POST") class UserLoginRequest extends ApiServiceRequest implements IReturn, IConvertible, IPost { /** * ID Number of the user to log in. */ // @ApiMember(Description="ID Number of the user to log in.", IsRequired=true) String? IdNumber; UserLoginRequest({this.IdNumber}); UserLoginRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); IdNumber = json['IdNumber']; return this; } Map toJson() => super.toJson()..addAll({ 'IdNumber': IdNumber }); createResponse() => UserLoginResponse(); getResponseTypeName() => "UserLoginResponse"; getTypeName() => "UserLoginRequest"; 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()), 'IntegrationProviderType': TypeInfo(TypeOf.Enum, enumValues:IntegrationProviderType.values), 'UserProductAttachmentData': TypeInfo(TypeOf.Class, create:() => UserProductAttachmentData()), 'UserProductData': TypeInfo(TypeOf.Class, create:() => UserProductData()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'ApiServiceResponse': TypeInfo(TypeOf.Class, create:() => ApiServiceResponse()), 'UserLoginResponse': TypeInfo(TypeOf.Class, create:() => UserLoginResponse()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'List': TypeInfo(TypeOf.Class, create:() => []), 'UserLoginRequest': TypeInfo(TypeOf.Class, create:() => UserLoginRequest()), });