/* Options: Date: 2026-04-05 18:22:55 Version: 6.110 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://internal.thebunkerbridge.com //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: GetEntityContact.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart,dart:typed_data */ import 'package:servicestack/servicestack.dart'; import 'dart:typed_data'; class EntityViewModel implements IConvertible { int? Id; String? Guid; String? Type; String? Name; bool? SuperTrader; String? CompanyDomain; int? KYCStartedBy; int? KYCCompletedBy; String? ETSMOHAAccount; EntityViewModel({this.Id,this.Guid,this.Type,this.Name,this.SuperTrader,this.CompanyDomain,this.KYCStartedBy,this.KYCCompletedBy,this.ETSMOHAAccount}); EntityViewModel.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Id = json['Id']; Guid = json['Guid']; Type = json['Type']; Name = json['Name']; SuperTrader = json['SuperTrader']; CompanyDomain = json['CompanyDomain']; KYCStartedBy = json['KYCStartedBy']; KYCCompletedBy = json['KYCCompletedBy']; ETSMOHAAccount = json['ETSMOHAAccount']; return this; } Map toJson() => { 'Id': Id, 'Guid': Guid, 'Type': Type, 'Name': Name, 'SuperTrader': SuperTrader, 'CompanyDomain': CompanyDomain, 'KYCStartedBy': KYCStartedBy, 'KYCCompletedBy': KYCCompletedBy, 'ETSMOHAAccount': ETSMOHAAccount }; getTypeName() => "EntityViewModel"; TypeContext? context = _ctx; } class GetAllAccessLevelsForEntityContactIdViewModel implements IConvertible { int? Id; bool? Allowed; String? Name; String? Description; String? PrettyText; GetAllAccessLevelsForEntityContactIdViewModel({this.Id,this.Allowed,this.Name,this.Description,this.PrettyText}); GetAllAccessLevelsForEntityContactIdViewModel.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Id = json['Id']; Allowed = json['Allowed']; Name = json['Name']; Description = json['Description']; PrettyText = json['PrettyText']; return this; } Map toJson() => { 'Id': Id, 'Allowed': Allowed, 'Name': Name, 'Description': Description, 'PrettyText': PrettyText }; getTypeName() => "GetAllAccessLevelsForEntityContactIdViewModel"; TypeContext? context = _ctx; } class EntityContactViewModel implements IConvertible { int? Id; String? Guid; int? EntityId; String? FirstName; String? LastName; String? Initials; String? Password; String? EmailAddress; bool? DarkMode; EntityViewModel? Entity; DateTime? LastActive; String? ImageGuid; int? DialingCodeCountryId; String? TelephoneNumber; bool? IsBridgeClient; List? AccessLevels; EntityContactViewModel({this.Id,this.Guid,this.EntityId,this.FirstName,this.LastName,this.Initials,this.Password,this.EmailAddress,this.DarkMode,this.Entity,this.LastActive,this.ImageGuid,this.DialingCodeCountryId,this.TelephoneNumber,this.IsBridgeClient,this.AccessLevels}); EntityContactViewModel.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Id = json['Id']; Guid = json['Guid']; EntityId = json['EntityId']; FirstName = json['FirstName']; LastName = json['LastName']; Initials = json['Initials']; Password = json['Password']; EmailAddress = json['EmailAddress']; DarkMode = json['DarkMode']; Entity = JsonConverters.fromJson(json['Entity'],'EntityViewModel',context!); LastActive = JsonConverters.fromJson(json['LastActive'],'DateTime',context!); ImageGuid = json['ImageGuid']; DialingCodeCountryId = json['DialingCodeCountryId']; TelephoneNumber = json['TelephoneNumber']; IsBridgeClient = json['IsBridgeClient']; AccessLevels = JsonConverters.fromJson(json['AccessLevels'],'List',context!); return this; } Map toJson() => { 'Id': Id, 'Guid': Guid, 'EntityId': EntityId, 'FirstName': FirstName, 'LastName': LastName, 'Initials': Initials, 'Password': Password, 'EmailAddress': EmailAddress, 'DarkMode': DarkMode, 'Entity': JsonConverters.toJson(Entity,'EntityViewModel',context!), 'LastActive': JsonConverters.toJson(LastActive,'DateTime',context!), 'ImageGuid': ImageGuid, 'DialingCodeCountryId': DialingCodeCountryId, 'TelephoneNumber': TelephoneNumber, 'IsBridgeClient': IsBridgeClient, 'AccessLevels': JsonConverters.toJson(AccessLevels,'List',context!) }; getTypeName() => "EntityContactViewModel"; TypeContext? context = _ctx; } // @Route("/Entity-Contacts/Contact", "Get") class GetEntityContact implements IReturn, IConvertible, IGet { GetEntityContact(); GetEntityContact.fromJson(Map json) : super(); fromMap(Map json) { return this; } Map toJson() => {}; createResponse() => EntityContactViewModel(); getResponseTypeName() => "EntityContactViewModel"; getTypeName() => "GetEntityContact"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'internal.thebunkerbridge.com', types: { 'EntityViewModel': TypeInfo(TypeOf.Class, create:() => EntityViewModel()), 'GetAllAccessLevelsForEntityContactIdViewModel': TypeInfo(TypeOf.Class, create:() => GetAllAccessLevelsForEntityContactIdViewModel()), 'EntityContactViewModel': TypeInfo(TypeOf.Class, create:() => EntityContactViewModel()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'GetEntityContact': TypeInfo(TypeOf.Class, create:() => GetEntityContact()), });