/* Options: Date: 2026-04-05 18:21:17 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: SendDealRecap.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart,dart:typed_data */ import 'package:servicestack/servicestack.dart'; import 'dart:typed_data'; class DealRecapEnquiryGradesViewModel implements IConvertible { int? Id; bool? Deleted; int? ProductId; int? VersionId; int? GradeId; String? SpecificationComments; int? VolumeFrom; int? VolumeTo; int? UnitId; int? VolumeUnitId; double? UnitPrice; int? CurrencyId; DealRecapEnquiryGradesViewModel({this.Id,this.Deleted,this.ProductId,this.VersionId,this.GradeId,this.SpecificationComments,this.VolumeFrom,this.VolumeTo,this.UnitId,this.VolumeUnitId,this.UnitPrice,this.CurrencyId}); DealRecapEnquiryGradesViewModel.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Id = json['Id']; Deleted = json['Deleted']; ProductId = json['ProductId']; VersionId = json['VersionId']; GradeId = json['GradeId']; SpecificationComments = json['SpecificationComments']; VolumeFrom = json['VolumeFrom']; VolumeTo = json['VolumeTo']; UnitId = json['UnitId']; VolumeUnitId = json['VolumeUnitId']; UnitPrice = JsonConverters.toDouble(json['UnitPrice']); CurrencyId = json['CurrencyId']; return this; } Map toJson() => { 'Id': Id, 'Deleted': Deleted, 'ProductId': ProductId, 'VersionId': VersionId, 'GradeId': GradeId, 'SpecificationComments': SpecificationComments, 'VolumeFrom': VolumeFrom, 'VolumeTo': VolumeTo, 'UnitId': UnitId, 'VolumeUnitId': VolumeUnitId, 'UnitPrice': UnitPrice, 'CurrencyId': CurrencyId }; getTypeName() => "DealRecapEnquiryGradesViewModel"; TypeContext? context = _ctx; } class GetCurrenciesViewModel implements IConvertible { int? Id; String? Code; String? Description; String? Symbol; int? Index; bool? Deleted; GetCurrenciesViewModel({this.Id,this.Code,this.Description,this.Symbol,this.Index,this.Deleted}); GetCurrenciesViewModel.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Id = json['Id']; Code = json['Code']; Description = json['Description']; Symbol = json['Symbol']; Index = json['Index']; Deleted = json['Deleted']; return this; } Map toJson() => { 'Id': Id, 'Code': Code, 'Description': Description, 'Symbol': Symbol, 'Index': Index, 'Deleted': Deleted }; getTypeName() => "GetCurrenciesViewModel"; TypeContext? context = _ctx; } class GetDeliveryMethodsViewModel implements IConvertible { int? Id; String? Name; GetDeliveryMethodsViewModel({this.Id,this.Name}); GetDeliveryMethodsViewModel.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Id = json['Id']; Name = json['Name']; return this; } Map toJson() => { 'Id': Id, 'Name': Name }; getTypeName() => "GetDeliveryMethodsViewModel"; TypeContext? context = _ctx; } class EntityAccountsViewModel implements IConvertible { int? Id; String? Type; String? Name; int? LinkedVesselId; EntityAccountsViewModel({this.Id,this.Type,this.Name,this.LinkedVesselId}); EntityAccountsViewModel.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Id = json['Id']; Type = json['Type']; Name = json['Name']; LinkedVesselId = json['LinkedVesselId']; return this; } Map toJson() => { 'Id': Id, 'Type': Type, 'Name': Name, 'LinkedVesselId': LinkedVesselId }; getTypeName() => "EntityAccountsViewModel"; TypeContext? context = _ctx; } class GetGradesViewModel implements IConvertible { int? Id; int? Index; String? Name; bool? Deleted; GetGradesViewModel({this.Id,this.Index,this.Name,this.Deleted}); GetGradesViewModel.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Id = json['Id']; Index = json['Index']; Name = json['Name']; Deleted = json['Deleted']; return this; } Map toJson() => { 'Id': Id, 'Index': Index, 'Name': Name, 'Deleted': Deleted }; getTypeName() => "GetGradesViewModel"; TypeContext? context = _ctx; } class GetPortListViewModel implements IConvertible { int? Id; String? Guid; String? Name; String? Code; double? Latitude; double? Longitude; int? CountryId; String? CountryName; GetPortListViewModel({this.Id,this.Guid,this.Name,this.Code,this.Latitude,this.Longitude,this.CountryId,this.CountryName}); GetPortListViewModel.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Id = json['Id']; Guid = json['Guid']; Name = json['Name']; Code = json['Code']; Latitude = JsonConverters.toDouble(json['Latitude']); Longitude = JsonConverters.toDouble(json['Longitude']); CountryId = json['CountryId']; CountryName = json['CountryName']; return this; } Map toJson() => { 'Id': Id, 'Guid': Guid, 'Name': Name, 'Code': Code, 'Latitude': Latitude, 'Longitude': Longitude, 'CountryId': CountryId, 'CountryName': CountryName }; getTypeName() => "GetPortListViewModel"; TypeContext? context = _ctx; } class GetProductsViewModel implements IConvertible { int? Id; int? Index; String? Name; bool? Deleted; double? ETSMultiplication; GetProductsViewModel({this.Id,this.Index,this.Name,this.Deleted,this.ETSMultiplication}); GetProductsViewModel.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Id = json['Id']; Index = json['Index']; Name = json['Name']; Deleted = json['Deleted']; ETSMultiplication = JsonConverters.toDouble(json['ETSMultiplication']); return this; } Map toJson() => { 'Id': Id, 'Index': Index, 'Name': Name, 'Deleted': Deleted, 'ETSMultiplication': ETSMultiplication }; getTypeName() => "GetProductsViewModel"; TypeContext? context = _ctx; } class GetUnitsViewModel implements IConvertible { int? Id; String? Code; bool? Deleted; GetUnitsViewModel({this.Id,this.Code,this.Deleted}); GetUnitsViewModel.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Id = json['Id']; Code = json['Code']; Deleted = json['Deleted']; return this; } Map toJson() => { 'Id': Id, 'Code': Code, 'Deleted': Deleted }; getTypeName() => "GetUnitsViewModel"; TypeContext? context = _ctx; } class GetVersionsViewModel implements IConvertible { int? Id; int? Index; String? Name; bool? Deleted; GetVersionsViewModel({this.Id,this.Index,this.Name,this.Deleted}); GetVersionsViewModel.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Id = json['Id']; Index = json['Index']; Name = json['Name']; Deleted = json['Deleted']; return this; } Map toJson() => { 'Id': Id, 'Index': Index, 'Name': Name, 'Deleted': Deleted }; getTypeName() => "GetVersionsViewModel"; TypeContext? context = _ctx; } class APISendDealRecapViewModel implements IConvertible { int? EnquiryId; String? EnquiryGuid; String? ChatGuid; int? IMONumber; int? VesselId; String? VesselName; String? BuyerAccountName; DateTime? DateFrom; DateTime? DateTo; int? PortId; int? DeliveryMethodId; int? BuyerSellerAccountId; String? RequestedTermsType; int? CreditTermDays; String? RecapComments; String? Agent; String? AdditionalCosts; int? FromEntityContactId; String? DocumentTitle; bool? RecapCanBeSent; List? GetPortList; List? GetDeliveryMethods; List? GetProducts; List? GetBuyerSellerAccounts; List? GetVersions; List? GetGrades; List? GetUnits; List? GetCurrencies; List? DealRecapEnquiryGrades; APISendDealRecapViewModel({this.EnquiryId,this.EnquiryGuid,this.ChatGuid,this.IMONumber,this.VesselId,this.VesselName,this.BuyerAccountName,this.DateFrom,this.DateTo,this.PortId,this.DeliveryMethodId,this.BuyerSellerAccountId,this.RequestedTermsType,this.CreditTermDays,this.RecapComments,this.Agent,this.AdditionalCosts,this.FromEntityContactId,this.DocumentTitle,this.RecapCanBeSent,this.GetPortList,this.GetDeliveryMethods,this.GetProducts,this.GetBuyerSellerAccounts,this.GetVersions,this.GetGrades,this.GetUnits,this.GetCurrencies,this.DealRecapEnquiryGrades}); APISendDealRecapViewModel.fromJson(Map json) { fromMap(json); } fromMap(Map json) { EnquiryId = json['EnquiryId']; EnquiryGuid = json['EnquiryGuid']; ChatGuid = json['ChatGuid']; IMONumber = json['IMONumber']; VesselId = json['VesselId']; VesselName = json['VesselName']; BuyerAccountName = json['BuyerAccountName']; DateFrom = JsonConverters.fromJson(json['DateFrom'],'DateTime',context!); DateTo = JsonConverters.fromJson(json['DateTo'],'DateTime',context!); PortId = json['PortId']; DeliveryMethodId = json['DeliveryMethodId']; BuyerSellerAccountId = json['BuyerSellerAccountId']; RequestedTermsType = json['RequestedTermsType']; CreditTermDays = json['CreditTermDays']; RecapComments = json['RecapComments']; Agent = json['Agent']; AdditionalCosts = json['AdditionalCosts']; FromEntityContactId = json['FromEntityContactId']; DocumentTitle = json['DocumentTitle']; RecapCanBeSent = json['RecapCanBeSent']; GetPortList = JsonConverters.fromJson(json['GetPortList'],'List',context!); GetDeliveryMethods = JsonConverters.fromJson(json['GetDeliveryMethods'],'List',context!); GetProducts = JsonConverters.fromJson(json['GetProducts'],'List',context!); GetBuyerSellerAccounts = JsonConverters.fromJson(json['GetBuyerSellerAccounts'],'List',context!); GetVersions = JsonConverters.fromJson(json['GetVersions'],'List',context!); GetGrades = JsonConverters.fromJson(json['GetGrades'],'List',context!); GetUnits = JsonConverters.fromJson(json['GetUnits'],'List',context!); GetCurrencies = JsonConverters.fromJson(json['GetCurrencies'],'List',context!); DealRecapEnquiryGrades = JsonConverters.fromJson(json['DealRecapEnquiryGrades'],'List',context!); return this; } Map toJson() => { 'EnquiryId': EnquiryId, 'EnquiryGuid': EnquiryGuid, 'ChatGuid': ChatGuid, 'IMONumber': IMONumber, 'VesselId': VesselId, 'VesselName': VesselName, 'BuyerAccountName': BuyerAccountName, 'DateFrom': JsonConverters.toJson(DateFrom,'DateTime',context!), 'DateTo': JsonConverters.toJson(DateTo,'DateTime',context!), 'PortId': PortId, 'DeliveryMethodId': DeliveryMethodId, 'BuyerSellerAccountId': BuyerSellerAccountId, 'RequestedTermsType': RequestedTermsType, 'CreditTermDays': CreditTermDays, 'RecapComments': RecapComments, 'Agent': Agent, 'AdditionalCosts': AdditionalCosts, 'FromEntityContactId': FromEntityContactId, 'DocumentTitle': DocumentTitle, 'RecapCanBeSent': RecapCanBeSent, 'GetPortList': JsonConverters.toJson(GetPortList,'List',context!), 'GetDeliveryMethods': JsonConverters.toJson(GetDeliveryMethods,'List',context!), 'GetProducts': JsonConverters.toJson(GetProducts,'List',context!), 'GetBuyerSellerAccounts': JsonConverters.toJson(GetBuyerSellerAccounts,'List',context!), 'GetVersions': JsonConverters.toJson(GetVersions,'List',context!), 'GetGrades': JsonConverters.toJson(GetGrades,'List',context!), 'GetUnits': JsonConverters.toJson(GetUnits,'List',context!), 'GetCurrencies': JsonConverters.toJson(GetCurrencies,'List',context!), 'DealRecapEnquiryGrades': JsonConverters.toJson(DealRecapEnquiryGrades,'List',context!) }; getTypeName() => "APISendDealRecapViewModel"; TypeContext? context = _ctx; } // @Route("/Send-Deal-Recap", "GET") class SendDealRecap implements IReturn, IConvertible, IGet { String? Guid; int? FromEntityContactId; String? ChatGuid; int? ToBuyerContactId; SendDealRecap({this.Guid,this.FromEntityContactId,this.ChatGuid,this.ToBuyerContactId}); SendDealRecap.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Guid = json['Guid']; FromEntityContactId = json['FromEntityContactId']; ChatGuid = json['ChatGuid']; ToBuyerContactId = json['ToBuyerContactId']; return this; } Map toJson() => { 'Guid': Guid, 'FromEntityContactId': FromEntityContactId, 'ChatGuid': ChatGuid, 'ToBuyerContactId': ToBuyerContactId }; createResponse() => APISendDealRecapViewModel(); getResponseTypeName() => "APISendDealRecapViewModel"; getTypeName() => "SendDealRecap"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'internal.thebunkerbridge.com', types: { 'DealRecapEnquiryGradesViewModel': TypeInfo(TypeOf.Class, create:() => DealRecapEnquiryGradesViewModel()), 'GetCurrenciesViewModel': TypeInfo(TypeOf.Class, create:() => GetCurrenciesViewModel()), 'GetDeliveryMethodsViewModel': TypeInfo(TypeOf.Class, create:() => GetDeliveryMethodsViewModel()), 'EntityAccountsViewModel': TypeInfo(TypeOf.Class, create:() => EntityAccountsViewModel()), 'GetGradesViewModel': TypeInfo(TypeOf.Class, create:() => GetGradesViewModel()), 'GetPortListViewModel': TypeInfo(TypeOf.Class, create:() => GetPortListViewModel()), 'GetProductsViewModel': TypeInfo(TypeOf.Class, create:() => GetProductsViewModel()), 'GetUnitsViewModel': TypeInfo(TypeOf.Class, create:() => GetUnitsViewModel()), 'GetVersionsViewModel': TypeInfo(TypeOf.Class, create:() => GetVersionsViewModel()), 'APISendDealRecapViewModel': TypeInfo(TypeOf.Class, create:() => APISendDealRecapViewModel()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'List': TypeInfo(TypeOf.Class, create:() => []), 'List': TypeInfo(TypeOf.Class, create:() => []), 'List': TypeInfo(TypeOf.Class, create:() => []), 'List': TypeInfo(TypeOf.Class, create:() => []), 'List': TypeInfo(TypeOf.Class, create:() => []), 'List': TypeInfo(TypeOf.Class, create:() => []), 'List': TypeInfo(TypeOf.Class, create:() => []), 'List': TypeInfo(TypeOf.Class, create:() => []), 'SendDealRecap': TypeInfo(TypeOf.Class, create:() => SendDealRecap()), });