/* Options: Date: 2026-09-22 23:40:51 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: EstimateAssembliesRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart,dart:typed_data */ import 'package:servicestack/servicestack.dart'; import 'dart:typed_data'; class AppliedAssembly implements IConvertible { int? TaskSeq; String? TemplateUID; String? TemplateName; String? AppliedBy; DateTime? AppliedAt; AppliedAssembly({this.TaskSeq,this.TemplateUID,this.TemplateName,this.AppliedBy,this.AppliedAt}); AppliedAssembly.fromJson(Map json) { fromMap(json); } fromMap(Map json) { TaskSeq = json['TaskSeq']; TemplateUID = json['TemplateUID']; TemplateName = json['TemplateName']; AppliedBy = json['AppliedBy']; AppliedAt = JsonConverters.fromJson(json['AppliedAt'],'DateTime',context!); return this; } Map toJson() => { 'TaskSeq': TaskSeq, 'TemplateUID': TemplateUID, 'TemplateName': TemplateName, 'AppliedBy': AppliedBy, 'AppliedAt': JsonConverters.toJson(AppliedAt,'DateTime',context!) }; getTypeName() => "AppliedAssembly"; TypeContext? context = _ctx; } class AssemblyOption implements IConvertible { String? TemplateUID; String? Name; String? Unit; String? Pack; bool? IsGlobal; String? Summary; AssemblyOption({this.TemplateUID,this.Name,this.Unit,this.Pack,this.IsGlobal,this.Summary}); AssemblyOption.fromJson(Map json) { fromMap(json); } fromMap(Map json) { TemplateUID = json['TemplateUID']; Name = json['Name']; Unit = json['Unit']; Pack = json['Pack']; IsGlobal = json['IsGlobal']; Summary = json['Summary']; return this; } Map toJson() => { 'TemplateUID': TemplateUID, 'Name': Name, 'Unit': Unit, 'Pack': Pack, 'IsGlobal': IsGlobal, 'Summary': Summary }; getTypeName() => "AssemblyOption"; TypeContext? context = _ctx; } class EstimateAssembliesResponse implements IConvertible { ResponseStatus? ResponseStatus; List? Applied = []; List? Available = []; EstimateAssembliesResponse({this.ResponseStatus,this.Applied,this.Available}); EstimateAssembliesResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { ResponseStatus = JsonConverters.fromJson(json['ResponseStatus'],'ResponseStatus',context!); Applied = JsonConverters.fromJson(json['Applied'],'List',context!); Available = JsonConverters.fromJson(json['Available'],'List',context!); return this; } Map toJson() => { 'ResponseStatus': JsonConverters.toJson(ResponseStatus,'ResponseStatus',context!), 'Applied': JsonConverters.toJson(Applied,'List',context!), 'Available': JsonConverters.toJson(Available,'List',context!) }; getTypeName() => "EstimateAssembliesResponse"; TypeContext? context = _ctx; } // @Route("/v1/Rfp/{RfpDocumentUID}/Estimate/Assemblies", "GET,OPTIONS") class EstimateAssembliesRequest implements IReturn, IConvertible, IGet { String? RfpDocumentUID; EstimateAssembliesRequest({this.RfpDocumentUID}); EstimateAssembliesRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { RfpDocumentUID = json['RfpDocumentUID']; return this; } Map toJson() => { 'RfpDocumentUID': RfpDocumentUID }; createResponse() => EstimateAssembliesResponse(); getResponseTypeName() => "EstimateAssembliesResponse"; getTypeName() => "EstimateAssembliesRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'api.dev.dynamics.trendsic.com', types: { 'AppliedAssembly': TypeInfo(TypeOf.Class, create:() => AppliedAssembly()), 'AssemblyOption': TypeInfo(TypeOf.Class, create:() => AssemblyOption()), 'EstimateAssembliesResponse': TypeInfo(TypeOf.Class, create:() => EstimateAssembliesResponse()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'List': TypeInfo(TypeOf.Class, create:() => []), 'EstimateAssembliesRequest': TypeInfo(TypeOf.Class, create:() => EstimateAssembliesRequest()), });