/* Options: Date: 2026-04-05 18:26:29 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: ETSOrders.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart,dart:typed_data */ import 'package:servicestack/servicestack.dart'; import 'dart:typed_data'; 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; } class GetETSOrderListNewIncludingForwardsViewModel implements IConvertible { int? Id; String? OrderGuid; String? Company; String? Status; String? OrderByName; String? OrderByImageGuid; int? Quantity; String? OrderPlacedDateTime; int? OrderVesselCount; double? UnitPrice; double? TotalPrice; bool? IsForward; String? ForwardMonth; bool? IsThirdParty; String? ThirdPartyName; double? CurrentValue; double? EUAMarkToMarket; DateTime? MonthStartingDate; bool? ShowMarkToMarket; GetETSOrderListNewIncludingForwardsViewModel({this.Id,this.OrderGuid,this.Company,this.Status,this.OrderByName,this.OrderByImageGuid,this.Quantity,this.OrderPlacedDateTime,this.OrderVesselCount,this.UnitPrice,this.TotalPrice,this.IsForward,this.ForwardMonth,this.IsThirdParty,this.ThirdPartyName,this.CurrentValue,this.EUAMarkToMarket,this.MonthStartingDate,this.ShowMarkToMarket}); GetETSOrderListNewIncludingForwardsViewModel.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Id = json['Id']; OrderGuid = json['OrderGuid']; Company = json['Company']; Status = json['Status']; OrderByName = json['OrderByName']; OrderByImageGuid = json['OrderByImageGuid']; Quantity = json['Quantity']; OrderPlacedDateTime = json['OrderPlacedDateTime']; OrderVesselCount = json['OrderVesselCount']; UnitPrice = JsonConverters.toDouble(json['UnitPrice']); TotalPrice = JsonConverters.toDouble(json['TotalPrice']); IsForward = json['IsForward']; ForwardMonth = json['ForwardMonth']; IsThirdParty = json['IsThirdParty']; ThirdPartyName = json['ThirdPartyName']; CurrentValue = JsonConverters.toDouble(json['CurrentValue']); EUAMarkToMarket = JsonConverters.toDouble(json['EUAMarkToMarket']); MonthStartingDate = JsonConverters.fromJson(json['MonthStartingDate'],'DateTime',context!); ShowMarkToMarket = json['ShowMarkToMarket']; return this; } Map toJson() => { 'Id': Id, 'OrderGuid': OrderGuid, 'Company': Company, 'Status': Status, 'OrderByName': OrderByName, 'OrderByImageGuid': OrderByImageGuid, 'Quantity': Quantity, 'OrderPlacedDateTime': OrderPlacedDateTime, 'OrderVesselCount': OrderVesselCount, 'UnitPrice': UnitPrice, 'TotalPrice': TotalPrice, 'IsForward': IsForward, 'ForwardMonth': ForwardMonth, 'IsThirdParty': IsThirdParty, 'ThirdPartyName': ThirdPartyName, 'CurrentValue': CurrentValue, 'EUAMarkToMarket': EUAMarkToMarket, 'MonthStartingDate': JsonConverters.toJson(MonthStartingDate,'DateTime',context!), 'ShowMarkToMarket': ShowMarkToMarket }; getTypeName() => "GetETSOrderListNewIncludingForwardsViewModel"; TypeContext? context = _ctx; } class GetETSPriceDayChangeViewModel implements IConvertible { int? Id; DateTime? Today; double? PreviousClose; double? ClosePrice; double? PercentageChange; double? EURChange; String? LabelDescription; bool? ShowGetQuoteButton; bool? ShowPriceSection; int? MinutesRemaining; String? MarketCountdownLabel; String? IsRegistered; GetETSPriceDayChangeViewModel({this.Id,this.Today,this.PreviousClose,this.ClosePrice,this.PercentageChange,this.EURChange,this.LabelDescription,this.ShowGetQuoteButton,this.ShowPriceSection,this.MinutesRemaining,this.MarketCountdownLabel,this.IsRegistered}); GetETSPriceDayChangeViewModel.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Id = json['Id']; Today = JsonConverters.fromJson(json['Today'],'DateTime',context!); PreviousClose = JsonConverters.toDouble(json['PreviousClose']); ClosePrice = JsonConverters.toDouble(json['ClosePrice']); PercentageChange = JsonConverters.toDouble(json['PercentageChange']); EURChange = JsonConverters.toDouble(json['EURChange']); LabelDescription = json['LabelDescription']; ShowGetQuoteButton = json['ShowGetQuoteButton']; ShowPriceSection = json['ShowPriceSection']; MinutesRemaining = json['MinutesRemaining']; MarketCountdownLabel = json['MarketCountdownLabel']; IsRegistered = json['IsRegistered']; return this; } Map toJson() => { 'Id': Id, 'Today': JsonConverters.toJson(Today,'DateTime',context!), 'PreviousClose': PreviousClose, 'ClosePrice': ClosePrice, 'PercentageChange': PercentageChange, 'EURChange': EURChange, 'LabelDescription': LabelDescription, 'ShowGetQuoteButton': ShowGetQuoteButton, 'ShowPriceSection': ShowPriceSection, 'MinutesRemaining': MinutesRemaining, 'MarketCountdownLabel': MarketCountdownLabel, 'IsRegistered': IsRegistered }; getTypeName() => "GetETSPriceDayChangeViewModel"; TypeContext? context = _ctx; } class ETSViewModel implements IConvertible { bool? CanPurchaseEUA; GetETSPriceDayChangeViewModel? GetETSPriceDayChange; GetETSRegistrationStatusViewModel? GetETSRegistrationStatus; List? GetETSOrderListNewIncludingForwards; ETSViewModel({this.CanPurchaseEUA,this.GetETSPriceDayChange,this.GetETSRegistrationStatus,this.GetETSOrderListNewIncludingForwards}); ETSViewModel.fromJson(Map json) { fromMap(json); } fromMap(Map json) { CanPurchaseEUA = json['CanPurchaseEUA']; GetETSPriceDayChange = JsonConverters.fromJson(json['GetETSPriceDayChange'],'GetETSPriceDayChangeViewModel',context!); GetETSRegistrationStatus = JsonConverters.fromJson(json['GetETSRegistrationStatus'],'GetETSRegistrationStatusViewModel',context!); GetETSOrderListNewIncludingForwards = JsonConverters.fromJson(json['GetETSOrderListNewIncludingForwards'],'List',context!); return this; } Map toJson() => { 'CanPurchaseEUA': CanPurchaseEUA, 'GetETSPriceDayChange': JsonConverters.toJson(GetETSPriceDayChange,'GetETSPriceDayChangeViewModel',context!), 'GetETSRegistrationStatus': JsonConverters.toJson(GetETSRegistrationStatus,'GetETSRegistrationStatusViewModel',context!), 'GetETSOrderListNewIncludingForwards': JsonConverters.toJson(GetETSOrderListNewIncludingForwards,'List',context!) }; getTypeName() => "ETSViewModel"; TypeContext? context = _ctx; } // @Route("/ETS/Orders", "GET") class ETSOrders implements IReturn, IConvertible, IGet { DateTime? DateFrom; DateTime? DateTo; int? VesselId; ETSOrders({this.DateFrom,this.DateTo,this.VesselId}); ETSOrders.fromJson(Map json) { fromMap(json); } fromMap(Map json) { DateFrom = JsonConverters.fromJson(json['DateFrom'],'DateTime',context!); DateTo = JsonConverters.fromJson(json['DateTo'],'DateTime',context!); VesselId = json['VesselId']; return this; } Map toJson() => { 'DateFrom': JsonConverters.toJson(DateFrom,'DateTime',context!), 'DateTo': JsonConverters.toJson(DateTo,'DateTime',context!), 'VesselId': VesselId }; createResponse() => ETSViewModel(); getResponseTypeName() => "ETSViewModel"; getTypeName() => "ETSOrders"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'internal.thebunkerbridge.com', types: { 'GetETSRegistrationStatusViewModel': TypeInfo(TypeOf.Class, create:() => GetETSRegistrationStatusViewModel()), 'GetETSOrderListNewIncludingForwardsViewModel': TypeInfo(TypeOf.Class, create:() => GetETSOrderListNewIncludingForwardsViewModel()), 'GetETSPriceDayChangeViewModel': TypeInfo(TypeOf.Class, create:() => GetETSPriceDayChangeViewModel()), 'ETSViewModel': TypeInfo(TypeOf.Class, create:() => ETSViewModel()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'ETSOrders': TypeInfo(TypeOf.Class, create:() => ETSOrders()), });