/* Options: Date: 2026-08-12 19:19:23 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: HoldsRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class HoldMatchDto implements IConvertible { String? RecordKey; String? Name; String? Tag; bool? Warn; HoldMatchDto({this.RecordKey,this.Name,this.Tag,this.Warn}); HoldMatchDto.fromJson(Map json) { fromMap(json); } fromMap(Map json) { RecordKey = json['RecordKey']; Name = json['Name']; Tag = json['Tag']; Warn = json['Warn']; return this; } Map toJson() => { 'RecordKey': RecordKey, 'Name': Name, 'Tag': Tag, 'Warn': Warn }; getTypeName() => "HoldMatchDto"; TypeContext? context = _ctx; } class LegalHoldDto implements IConvertible { int? HoldId; String? HoldKey; String? Name; String? Matter; String? ScopeDim; String? ScopeVal; String? ScopeLabel; String? ScopeNote; String? PlacedBy; String? PlacedLabel; bool? Released; String? ReleasedLabel; String? FrozenJson; String? LogJson; List? Matches = []; LegalHoldDto({this.HoldId,this.HoldKey,this.Name,this.Matter,this.ScopeDim,this.ScopeVal,this.ScopeLabel,this.ScopeNote,this.PlacedBy,this.PlacedLabel,this.Released,this.ReleasedLabel,this.FrozenJson,this.LogJson,this.Matches}); LegalHoldDto.fromJson(Map json) { fromMap(json); } fromMap(Map json) { HoldId = json['HoldId']; HoldKey = json['HoldKey']; Name = json['Name']; Matter = json['Matter']; ScopeDim = json['ScopeDim']; ScopeVal = json['ScopeVal']; ScopeLabel = json['ScopeLabel']; ScopeNote = json['ScopeNote']; PlacedBy = json['PlacedBy']; PlacedLabel = json['PlacedLabel']; Released = json['Released']; ReleasedLabel = json['ReleasedLabel']; FrozenJson = json['FrozenJson']; LogJson = json['LogJson']; Matches = JsonConverters.fromJson(json['Matches'],'List',context!); return this; } Map toJson() => { 'HoldId': HoldId, 'HoldKey': HoldKey, 'Name': Name, 'Matter': Matter, 'ScopeDim': ScopeDim, 'ScopeVal': ScopeVal, 'ScopeLabel': ScopeLabel, 'ScopeNote': ScopeNote, 'PlacedBy': PlacedBy, 'PlacedLabel': PlacedLabel, 'Released': Released, 'ReleasedLabel': ReleasedLabel, 'FrozenJson': FrozenJson, 'LogJson': LogJson, 'Matches': JsonConverters.toJson(Matches,'List',context!) }; getTypeName() => "LegalHoldDto"; TypeContext? context = _ctx; } class HoldsResponse implements IConvertible { ResponseStatus? ResponseStatus; List? Holds = []; HoldsResponse({this.ResponseStatus,this.Holds}); HoldsResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { ResponseStatus = JsonConverters.fromJson(json['ResponseStatus'],'ResponseStatus',context!); Holds = JsonConverters.fromJson(json['Holds'],'List',context!); return this; } Map toJson() => { 'ResponseStatus': JsonConverters.toJson(ResponseStatus,'ResponseStatus',context!), 'Holds': JsonConverters.toJson(Holds,'List',context!) }; getTypeName() => "HoldsResponse"; TypeContext? context = _ctx; } // @Route("/v1/records/holds", "GET,OPTIONS") class HoldsRequest implements IReturn, IConvertible, IGet { HoldsRequest(); HoldsRequest.fromJson(Map json) : super(); fromMap(Map json) { return this; } Map toJson() => {}; createResponse() => HoldsResponse(); getResponseTypeName() => "HoldsResponse"; getTypeName() => "HoldsRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'api.dev.dynamics.trendsic.com', types: { 'HoldMatchDto': TypeInfo(TypeOf.Class, create:() => HoldMatchDto()), 'LegalHoldDto': TypeInfo(TypeOf.Class, create:() => LegalHoldDto()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'HoldsResponse': TypeInfo(TypeOf.Class, create:() => HoldsResponse()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'HoldsRequest': TypeInfo(TypeOf.Class, create:() => HoldsRequest()), });