/* Options: Date: 2025-10-28 01:11:17 Version: 8.80 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://duengageapi.uat.scadsoftware.com //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: CurrencyRatesAdd.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart,dart:collection */ import 'package:servicestack/servicestack.dart'; import 'dart:collection'; class CurrencyRatesAddResponse implements IConvertible { // @DataMember(Order=2) int? TenantsId; // @DataMember(Order=3) int? FromCurrenciesId; // @DataMember(Order=4) int? ToCurrenciesId; // @DataMember(Order=5) double? ExchangeRate; // @DataMember(Order=6) DateTime? EffectiveDate; // @DataMember(Order=8) ResponseStatus? ResponseStatus; CurrencyRatesAddResponse({this.TenantsId,this.FromCurrenciesId,this.ToCurrenciesId,this.ExchangeRate,this.EffectiveDate,this.ResponseStatus}); CurrencyRatesAddResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { TenantsId = json['TenantsId']; FromCurrenciesId = json['FromCurrenciesId']; ToCurrenciesId = json['ToCurrenciesId']; ExchangeRate = JsonConverters.toDouble(json['ExchangeRate']); EffectiveDate = JsonConverters.fromJson(json['EffectiveDate'],'DateTime',context!); ResponseStatus = JsonConverters.fromJson(json['ResponseStatus'],'ResponseStatus',context!); return this; } Map toJson() => { 'TenantsId': TenantsId, 'FromCurrenciesId': FromCurrenciesId, 'ToCurrenciesId': ToCurrenciesId, 'ExchangeRate': ExchangeRate, 'EffectiveDate': JsonConverters.toJson(EffectiveDate,'DateTime',context!), 'ResponseStatus': JsonConverters.toJson(ResponseStatus,'ResponseStatus',context!) }; getTypeName() => "CurrencyRatesAddResponse"; TypeContext? context = _ctx; } // @Route("/currency_rates", "POST") // @DataContract class CurrencyRatesAdd implements IReturn, IConvertible, IPost { // @DataMember(Order=2) // @Validate(Validator="NotNull") int? TenantsId; // @DataMember(Order=3) // @Validate(Validator="NotNull") int? FromCurrenciesId; // @DataMember(Order=4) // @Validate(Validator="NotNull") int? ToCurrenciesId; // @DataMember(Order=5) // @Validate(Validator="NotNull") double? ExchangeRate; // @DataMember(Order=6) // @Validate(Validator="NotNull") DateTime? EffectiveDate; CurrencyRatesAdd({this.TenantsId,this.FromCurrenciesId,this.ToCurrenciesId,this.ExchangeRate,this.EffectiveDate}); CurrencyRatesAdd.fromJson(Map json) { fromMap(json); } fromMap(Map json) { TenantsId = json['TenantsId']; FromCurrenciesId = json['FromCurrenciesId']; ToCurrenciesId = json['ToCurrenciesId']; ExchangeRate = JsonConverters.toDouble(json['ExchangeRate']); EffectiveDate = JsonConverters.fromJson(json['EffectiveDate'],'DateTime',context!); return this; } Map toJson() => { 'TenantsId': TenantsId, 'FromCurrenciesId': FromCurrenciesId, 'ToCurrenciesId': ToCurrenciesId, 'ExchangeRate': ExchangeRate, 'EffectiveDate': JsonConverters.toJson(EffectiveDate,'DateTime',context!) }; createResponse() => CurrencyRatesAddResponse(); getResponseTypeName() => "CurrencyRatesAddResponse"; getTypeName() => "CurrencyRatesAdd"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'duengageapi.uat.scadsoftware.com', types: { 'CurrencyRatesAddResponse': TypeInfo(TypeOf.Class, create:() => CurrencyRatesAddResponse()), 'CurrencyRatesAdd': TypeInfo(TypeOf.Class, create:() => CurrencyRatesAdd()), });