/* Options: Date: 2026-08-01 07:28:45 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: ResourceRatesRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart,dart:typed_data */ import 'package:servicestack/servicestack.dart'; import 'dart:typed_data'; class ResourceRateComponentDto implements IConvertible { String? Label; double? Amount; ResourceRateComponentDto({this.Label,this.Amount}); ResourceRateComponentDto.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Label = json['Label']; Amount = JsonConverters.toDouble(json['Amount']); return this; } Map toJson() => { 'Label': Label, 'Amount': Amount }; getTypeName() => "ResourceRateComponentDto"; TypeContext? context = _ctx; } class ResourceRateHistoryRow implements IConvertible { String? From; double? Cost; double? Bill; ResourceRateHistoryRow({this.From,this.Cost,this.Bill}); ResourceRateHistoryRow.fromJson(Map json) { fromMap(json); } fromMap(Map json) { From = json['From']; Cost = JsonConverters.toDouble(json['Cost']); Bill = JsonConverters.toDouble(json['Bill']); return this; } Map toJson() => { 'From': From, 'Cost': Cost, 'Bill': Bill }; getTypeName() => "ResourceRateHistoryRow"; TypeContext? context = _ctx; } class ResourceRateResource implements IConvertible { String? Id; String? Name; String? Meta; String? Unit; double? CostRate; double? BillRate; String? EffectiveFrom; bool? HasCard; List? Composition = []; double? PrevailingFloor; List? History = []; ResourceRateResource({this.Id,this.Name,this.Meta,this.Unit,this.CostRate,this.BillRate,this.EffectiveFrom,this.HasCard,this.Composition,this.PrevailingFloor,this.History}); ResourceRateResource.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Id = json['Id']; Name = json['Name']; Meta = json['Meta']; Unit = json['Unit']; CostRate = JsonConverters.toDouble(json['CostRate']); BillRate = JsonConverters.toDouble(json['BillRate']); EffectiveFrom = json['EffectiveFrom']; HasCard = json['HasCard']; Composition = JsonConverters.fromJson(json['Composition'],'List',context!); PrevailingFloor = JsonConverters.toDouble(json['PrevailingFloor']); History = JsonConverters.fromJson(json['History'],'List',context!); return this; } Map toJson() => { 'Id': Id, 'Name': Name, 'Meta': Meta, 'Unit': Unit, 'CostRate': CostRate, 'BillRate': BillRate, 'EffectiveFrom': EffectiveFrom, 'HasCard': HasCard, 'Composition': JsonConverters.toJson(Composition,'List',context!), 'PrevailingFloor': PrevailingFloor, 'History': JsonConverters.toJson(History,'List',context!) }; getTypeName() => "ResourceRateResource"; TypeContext? context = _ctx; } class ResourceRatesResponse implements IConvertible { ResponseStatus? ResponseStatus; String? Type; String? AsOf; List? Resources = []; ResourceRatesResponse({this.ResponseStatus,this.Type,this.AsOf,this.Resources}); ResourceRatesResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { ResponseStatus = JsonConverters.fromJson(json['ResponseStatus'],'ResponseStatus',context!); Type = json['Type']; AsOf = json['AsOf']; Resources = JsonConverters.fromJson(json['Resources'],'List',context!); return this; } Map toJson() => { 'ResponseStatus': JsonConverters.toJson(ResponseStatus,'ResponseStatus',context!), 'Type': Type, 'AsOf': AsOf, 'Resources': JsonConverters.toJson(Resources,'List',context!) }; getTypeName() => "ResourceRatesResponse"; TypeContext? context = _ctx; } // @Route("/v1/rates", "GET,OPTIONS") class ResourceRatesRequest implements IReturn, IConvertible, IGet { String? Type; String? AsOf; ResourceRatesRequest({this.Type,this.AsOf}); ResourceRatesRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Type = json['Type']; AsOf = json['AsOf']; return this; } Map toJson() => { 'Type': Type, 'AsOf': AsOf }; createResponse() => ResourceRatesResponse(); getResponseTypeName() => "ResourceRatesResponse"; getTypeName() => "ResourceRatesRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'api.dev.dynamics.trendsic.com', types: { 'ResourceRateComponentDto': TypeInfo(TypeOf.Class, create:() => ResourceRateComponentDto()), 'ResourceRateHistoryRow': TypeInfo(TypeOf.Class, create:() => ResourceRateHistoryRow()), 'ResourceRateResource': TypeInfo(TypeOf.Class, create:() => ResourceRateResource()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'List': TypeInfo(TypeOf.Class, create:() => []), 'ResourceRatesResponse': TypeInfo(TypeOf.Class, create:() => ResourceRatesResponse()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'ResourceRatesRequest': TypeInfo(TypeOf.Class, create:() => ResourceRatesRequest()), });