/* Options: Date: 2026-11-08 11:52:11 Version: 5.140 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://devapi.billhighway.com //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: ExchangeRateBaseParams.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class ExchangeRate implements ILazyLoadMemoryCacheValue, IConvertible { String? BaseCurrency; String? ForeignCurrency; double? Rate; DateTime? TimeStamp; bool? FromCache; ExchangeRate({this.BaseCurrency,this.ForeignCurrency,this.Rate,this.TimeStamp,this.FromCache}); ExchangeRate.fromJson(Map json) { fromMap(json); } fromMap(Map json) { BaseCurrency = json['BaseCurrency']; ForeignCurrency = json['ForeignCurrency']; Rate = JsonConverters.toDouble(json['Rate']); TimeStamp = JsonConverters.fromJson(json['TimeStamp'],'DateTime',context!); FromCache = json['FromCache']; return this; } Map toJson() => { 'BaseCurrency': BaseCurrency, 'ForeignCurrency': ForeignCurrency, 'Rate': Rate, 'TimeStamp': JsonConverters.toJson(TimeStamp,'DateTime',context!), 'FromCache': FromCache }; getTypeName() => "ExchangeRate"; TypeContext? context = _ctx; } class ExchangeRateBase implements IConvertible { ExchangeRate? ExchangeRate; double? BaseAmount; ExchangeRateBase({this.ExchangeRate,this.BaseAmount}); ExchangeRateBase.fromJson(Map json) { fromMap(json); } fromMap(Map json) { ExchangeRate = JsonConverters.fromJson(json['ExchangeRate'],'ExchangeRate',context!); BaseAmount = JsonConverters.toDouble(json['BaseAmount']); return this; } Map toJson() => { 'ExchangeRate': JsonConverters.toJson(ExchangeRate,'ExchangeRate',context!), 'BaseAmount': BaseAmount }; getTypeName() => "ExchangeRateBase"; TypeContext? context = _ctx; } // @Route("/api/Financial/ExchangeRateBase", "POST") class ExchangeRateBaseParams extends ExchangeRateBaseParams implements IReturn, IConvertible { ExchangeRateBaseParams(); ExchangeRateBaseParams.fromJson(Map json) : super.fromJson(json); fromMap(Map json) { super.fromMap(json); return this; } Map toJson() => super.toJson(); createResponse() => ExchangeRateBase(); getResponseTypeName() => "ExchangeRateBase"; getTypeName() => "ExchangeRateBaseParams"; TypeContext? context = _ctx; } class ExchangeRateBaseParams implements IConvertible { String? ProcessingCurrency; double? AmountDue; String? BaseCurrency; ExchangeRateBaseParams({this.ProcessingCurrency,this.AmountDue,this.BaseCurrency}); ExchangeRateBaseParams.fromJson(Map json) { fromMap(json); } fromMap(Map json) { ProcessingCurrency = json['ProcessingCurrency']; AmountDue = JsonConverters.toDouble(json['AmountDue']); BaseCurrency = json['BaseCurrency']; return this; } Map toJson() => { 'ProcessingCurrency': ProcessingCurrency, 'AmountDue': AmountDue, 'BaseCurrency': BaseCurrency }; getTypeName() => "ExchangeRateBaseParams"; TypeContext? context = _ctx; } abstract class ILazyLoadMemoryCacheValue { bool? FromCache; } TypeContext _ctx = TypeContext(library: 'devapi.billhighway.com', types: { 'ExchangeRate': TypeInfo(TypeOf.Class, create:() => ExchangeRate()), 'ExchangeRateBase': TypeInfo(TypeOf.Class, create:() => ExchangeRateBase()), 'ExchangeRateBaseParams': TypeInfo(TypeOf.Class, create:() => ExchangeRateBaseParams()), 'ILazyLoadMemoryCacheValue': TypeInfo(TypeOf.Interface), });