/* Options: Date: 2026-08-01 09:36:55 Version: 8.80 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://api.dev.dynamics.trendsic.com //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: RatesResolveRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart,dart:typed_data */ import 'package:servicestack/servicestack.dart'; import 'dart:typed_data'; class RateQuote implements IConvertible { String? Tier; String? Confidence; double? Value; String? Unit; String? Provenance; String? Url; DateTime? FetchedAtUtc; String? Vendor; String? Location; double? RateDay; double? RateWeek; double? RateMonth; double? AdjustmentPct; double? ListValue; String? Note; String? ChipShort; String? Status; RateQuote({this.Tier,this.Confidence,this.Value,this.Unit,this.Provenance,this.Url,this.FetchedAtUtc,this.Vendor,this.Location,this.RateDay,this.RateWeek,this.RateMonth,this.AdjustmentPct,this.ListValue,this.Note,this.ChipShort,this.Status}); RateQuote.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Tier = json['Tier']; Confidence = json['Confidence']; Value = JsonConverters.toDouble(json['Value']); Unit = json['Unit']; Provenance = json['Provenance']; Url = json['Url']; FetchedAtUtc = JsonConverters.fromJson(json['FetchedAtUtc'],'DateTime',context!); Vendor = json['Vendor']; Location = json['Location']; RateDay = JsonConverters.toDouble(json['RateDay']); RateWeek = JsonConverters.toDouble(json['RateWeek']); RateMonth = JsonConverters.toDouble(json['RateMonth']); AdjustmentPct = JsonConverters.toDouble(json['AdjustmentPct']); ListValue = JsonConverters.toDouble(json['ListValue']); Note = json['Note']; ChipShort = json['ChipShort']; Status = json['Status']; return this; } Map toJson() => { 'Tier': Tier, 'Confidence': Confidence, 'Value': Value, 'Unit': Unit, 'Provenance': Provenance, 'Url': Url, 'FetchedAtUtc': JsonConverters.toJson(FetchedAtUtc,'DateTime',context!), 'Vendor': Vendor, 'Location': Location, 'RateDay': RateDay, 'RateWeek': RateWeek, 'RateMonth': RateMonth, 'AdjustmentPct': AdjustmentPct, 'ListValue': ListValue, 'Note': Note, 'ChipShort': ChipShort, 'Status': Status }; getTypeName() => "RateQuote"; TypeContext? context = _ctx; } class RatesResolveResponse implements IConvertible { ResponseStatus? ResponseStatus; String? RateKey; String? Name; String? Kind; String? Unit; List? Quotes = []; String? RetailRequestId; double? CurrentRate; String? CurrentChip; RatesResolveResponse({this.ResponseStatus,this.RateKey,this.Name,this.Kind,this.Unit,this.Quotes,this.RetailRequestId,this.CurrentRate,this.CurrentChip}); RatesResolveResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { ResponseStatus = JsonConverters.fromJson(json['ResponseStatus'],'ResponseStatus',context!); RateKey = json['RateKey']; Name = json['Name']; Kind = json['Kind']; Unit = json['Unit']; Quotes = JsonConverters.fromJson(json['Quotes'],'List',context!); RetailRequestId = json['RetailRequestId']; CurrentRate = JsonConverters.toDouble(json['CurrentRate']); CurrentChip = json['CurrentChip']; return this; } Map toJson() => { 'ResponseStatus': JsonConverters.toJson(ResponseStatus,'ResponseStatus',context!), 'RateKey': RateKey, 'Name': Name, 'Kind': Kind, 'Unit': Unit, 'Quotes': JsonConverters.toJson(Quotes,'List',context!), 'RetailRequestId': RetailRequestId, 'CurrentRate': CurrentRate, 'CurrentChip': CurrentChip }; getTypeName() => "RatesResolveResponse"; TypeContext? context = _ctx; } // @Route("/v1/Rfp/{RfpDocumentUID}/Rates/Resolve", "POST,OPTIONS") class RatesResolveRequest implements IReturn, IConvertible, IPost { String? RfpDocumentUID; String? RateKey; RatesResolveRequest({this.RfpDocumentUID,this.RateKey}); RatesResolveRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { RfpDocumentUID = json['RfpDocumentUID']; RateKey = json['RateKey']; return this; } Map toJson() => { 'RfpDocumentUID': RfpDocumentUID, 'RateKey': RateKey }; createResponse() => RatesResolveResponse(); getResponseTypeName() => "RatesResolveResponse"; getTypeName() => "RatesResolveRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'api.dev.dynamics.trendsic.com', types: { 'RateQuote': TypeInfo(TypeOf.Class, create:() => RateQuote()), 'RatesResolveResponse': TypeInfo(TypeOf.Class, create:() => RatesResolveResponse()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'RatesResolveRequest': TypeInfo(TypeOf.Class, create:() => RatesResolveRequest()), });