/* Options: Date: 2026-04-05 18:23:41 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: ETSPlaceOrderForwardSubmit.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart,dart:typed_data */ import 'package:servicestack/servicestack.dart'; import 'dart:typed_data'; class ETSLinkedVesselsViewModel implements IConvertible { bool? Deleted; int? VesselId; int? Quantity; String? MohaAccount; bool? IsQuote; ETSLinkedVesselsViewModel({this.Deleted,this.VesselId,this.Quantity,this.MohaAccount,this.IsQuote}); ETSLinkedVesselsViewModel.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Deleted = json['Deleted']; VesselId = json['VesselId']; Quantity = json['Quantity']; MohaAccount = json['MohaAccount']; IsQuote = json['IsQuote']; return this; } Map toJson() => { 'Deleted': Deleted, 'VesselId': VesselId, 'Quantity': Quantity, 'MohaAccount': MohaAccount, 'IsQuote': IsQuote }; getTypeName() => "ETSLinkedVesselsViewModel"; TypeContext? context = _ctx; } class GetETSRegistrationStatusViewModel implements IConvertible { String? Status; String? AppliedBy; GetETSRegistrationStatusViewModel({this.Status,this.AppliedBy}); GetETSRegistrationStatusViewModel.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Status = json['Status']; AppliedBy = json['AppliedBy']; return this; } Map toJson() => { 'Status': Status, 'AppliedBy': AppliedBy }; getTypeName() => "GetETSRegistrationStatusViewModel"; TypeContext? context = _ctx; } enum SavingResultStatus { Success, Error, } class SavingResultErrors implements IConvertible { String? Error; SavingResultErrors({this.Error}); SavingResultErrors.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Error = json['Error']; return this; } Map toJson() => { 'Error': Error }; getTypeName() => "SavingResultErrors"; TypeContext? context = _ctx; } class SavingResult implements IConvertible { int? Id; String? GuidId; SavingResultStatus? Status; List? Errors; SavingResult({this.Id,this.GuidId,this.Status,this.Errors}); SavingResult.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Id = json['Id']; GuidId = json['GuidId']; Status = JsonConverters.fromJson(json['Status'],'SavingResultStatus',context!); Errors = JsonConverters.fromJson(json['Errors'],'List',context!); return this; } Map toJson() => { 'Id': Id, 'GuidId': GuidId, 'Status': JsonConverters.toJson(Status,'SavingResultStatus',context!), 'Errors': JsonConverters.toJson(Errors,'List',context!) }; getTypeName() => "SavingResult"; TypeContext? context = _ctx; } // @Route("/ETS/Forward/Place-Order", "POST") class ETSPlaceOrderForwardSubmit implements IReturn, IConvertible, IPost { String? QuoteGuid; int? Quantity; int? MonthNumber; DateTime? StartDate; String? InvoicedBy; String? SelectedForwardOption; bool? ThirdParty; String? ThirdPartyName; List? LinkedVessels; GetETSRegistrationStatusViewModel? GetETSRegistrationStatus; ETSPlaceOrderForwardSubmit({this.QuoteGuid,this.Quantity,this.MonthNumber,this.StartDate,this.InvoicedBy,this.SelectedForwardOption,this.ThirdParty,this.ThirdPartyName,this.LinkedVessels,this.GetETSRegistrationStatus}); ETSPlaceOrderForwardSubmit.fromJson(Map json) { fromMap(json); } fromMap(Map json) { QuoteGuid = json['QuoteGuid']; Quantity = json['Quantity']; MonthNumber = json['MonthNumber']; StartDate = JsonConverters.fromJson(json['StartDate'],'DateTime',context!); InvoicedBy = json['InvoicedBy']; SelectedForwardOption = json['SelectedForwardOption']; ThirdParty = json['ThirdParty']; ThirdPartyName = json['ThirdPartyName']; LinkedVessels = JsonConverters.fromJson(json['LinkedVessels'],'List',context!); GetETSRegistrationStatus = JsonConverters.fromJson(json['GetETSRegistrationStatus'],'GetETSRegistrationStatusViewModel',context!); return this; } Map toJson() => { 'QuoteGuid': QuoteGuid, 'Quantity': Quantity, 'MonthNumber': MonthNumber, 'StartDate': JsonConverters.toJson(StartDate,'DateTime',context!), 'InvoicedBy': InvoicedBy, 'SelectedForwardOption': SelectedForwardOption, 'ThirdParty': ThirdParty, 'ThirdPartyName': ThirdPartyName, 'LinkedVessels': JsonConverters.toJson(LinkedVessels,'List',context!), 'GetETSRegistrationStatus': JsonConverters.toJson(GetETSRegistrationStatus,'GetETSRegistrationStatusViewModel',context!) }; createResponse() => SavingResult(); getResponseTypeName() => "SavingResult"; getTypeName() => "ETSPlaceOrderForwardSubmit"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'internal.thebunkerbridge.com', types: { 'ETSLinkedVesselsViewModel': TypeInfo(TypeOf.Class, create:() => ETSLinkedVesselsViewModel()), 'GetETSRegistrationStatusViewModel': TypeInfo(TypeOf.Class, create:() => GetETSRegistrationStatusViewModel()), 'SavingResultStatus': TypeInfo(TypeOf.Enum, enumValues:SavingResultStatus.values), 'SavingResultErrors': TypeInfo(TypeOf.Class, create:() => SavingResultErrors()), 'SavingResult': TypeInfo(TypeOf.Class, create:() => SavingResult()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'ETSPlaceOrderForwardSubmit': TypeInfo(TypeOf.Class, create:() => ETSPlaceOrderForwardSubmit()), 'List': TypeInfo(TypeOf.Class, create:() => []), });