/* Options: Date: 2026-09-22 23:40:39 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: EstimateRevisionListRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart,dart:typed_data */ import 'package:servicestack/servicestack.dart'; import 'dart:typed_data'; class EstimateRevision implements IConvertible { int? EstimateRevisionID; int? RfpDocumentID; int? RevisionNo; String? Label; String? Reason; String? Trigger; double? TotalAmount; int? LineCount; String? CreatedBy; DateTime? CreatedAt; String? SnapshotJson; EstimateRevision({this.EstimateRevisionID,this.RfpDocumentID,this.RevisionNo,this.Label,this.Reason,this.Trigger,this.TotalAmount,this.LineCount,this.CreatedBy,this.CreatedAt,this.SnapshotJson}); EstimateRevision.fromJson(Map json) { fromMap(json); } fromMap(Map json) { EstimateRevisionID = json['EstimateRevisionID']; RfpDocumentID = json['RfpDocumentID']; RevisionNo = json['RevisionNo']; Label = json['Label']; Reason = json['Reason']; Trigger = json['Trigger']; TotalAmount = JsonConverters.toDouble(json['TotalAmount']); LineCount = json['LineCount']; CreatedBy = json['CreatedBy']; CreatedAt = JsonConverters.fromJson(json['CreatedAt'],'DateTime',context!); SnapshotJson = json['SnapshotJson']; return this; } Map toJson() => { 'EstimateRevisionID': EstimateRevisionID, 'RfpDocumentID': RfpDocumentID, 'RevisionNo': RevisionNo, 'Label': Label, 'Reason': Reason, 'Trigger': Trigger, 'TotalAmount': TotalAmount, 'LineCount': LineCount, 'CreatedBy': CreatedBy, 'CreatedAt': JsonConverters.toJson(CreatedAt,'DateTime',context!), 'SnapshotJson': SnapshotJson }; getTypeName() => "EstimateRevision"; TypeContext? context = _ctx; } class EstimateRevisionListResponse implements IConvertible { ResponseStatus? ResponseStatus; List? Revisions = []; int? RevisionNo; EstimateRevisionListResponse({this.ResponseStatus,this.Revisions,this.RevisionNo}); EstimateRevisionListResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { ResponseStatus = JsonConverters.fromJson(json['ResponseStatus'],'ResponseStatus',context!); Revisions = JsonConverters.fromJson(json['Revisions'],'List',context!); RevisionNo = json['RevisionNo']; return this; } Map toJson() => { 'ResponseStatus': JsonConverters.toJson(ResponseStatus,'ResponseStatus',context!), 'Revisions': JsonConverters.toJson(Revisions,'List',context!), 'RevisionNo': RevisionNo }; getTypeName() => "EstimateRevisionListResponse"; TypeContext? context = _ctx; } // @Route("/v1/Rfp/{RfpDocumentUID}/Estimate/Revisions", "GET,OPTIONS") class EstimateRevisionListRequest implements IReturn, IConvertible, IGet { String? RfpDocumentUID; EstimateRevisionListRequest({this.RfpDocumentUID}); EstimateRevisionListRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { RfpDocumentUID = json['RfpDocumentUID']; return this; } Map toJson() => { 'RfpDocumentUID': RfpDocumentUID }; createResponse() => EstimateRevisionListResponse(); getResponseTypeName() => "EstimateRevisionListResponse"; getTypeName() => "EstimateRevisionListRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'api.dev.dynamics.trendsic.com', types: { 'EstimateRevision': TypeInfo(TypeOf.Class, create:() => EstimateRevision()), 'EstimateRevisionListResponse': TypeInfo(TypeOf.Class, create:() => EstimateRevisionListResponse()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'EstimateRevisionListRequest': TypeInfo(TypeOf.Class, create:() => EstimateRevisionListRequest()), });