/* Options: Date: 2026-08-01 05:30:31 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: ResourceConflictsRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class ResourceConflictBookingDto implements IConvertible { String? Project; String? Job; String? Window; String? Tag; bool? Hot; ResourceConflictBookingDto({this.Project,this.Job,this.Window,this.Tag,this.Hot}); ResourceConflictBookingDto.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Project = json['Project']; Job = json['Job']; Window = json['Window']; Tag = json['Tag']; Hot = json['Hot']; return this; } Map toJson() => { 'Project': Project, 'Job': Job, 'Window': Window, 'Tag': Tag, 'Hot': Hot }; getTypeName() => "ResourceConflictBookingDto"; TypeContext? context = _ctx; } class ResourceConflictOptionDto implements IConvertible { String? Id; String? Label; String? Note; bool? Clears; bool? Recommended; String? Why; String? ActionJson; ResourceConflictOptionDto({this.Id,this.Label,this.Note,this.Clears,this.Recommended,this.Why,this.ActionJson}); ResourceConflictOptionDto.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Id = json['Id']; Label = json['Label']; Note = json['Note']; Clears = json['Clears']; Recommended = json['Recommended']; Why = json['Why']; ActionJson = json['ActionJson']; return this; } Map toJson() => { 'Id': Id, 'Label': Label, 'Note': Note, 'Clears': Clears, 'Recommended': Recommended, 'Why': Why, 'ActionJson': ActionJson }; getTypeName() => "ResourceConflictOptionDto"; TypeContext? context = _ctx; } class ResourceConflictDto implements IConvertible { String? Id; String? Kind; String? Name; String? Severity; String? Summary; List? Bookings = []; List? Options = []; ResourceConflictDto({this.Id,this.Kind,this.Name,this.Severity,this.Summary,this.Bookings,this.Options}); ResourceConflictDto.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Id = json['Id']; Kind = json['Kind']; Name = json['Name']; Severity = json['Severity']; Summary = json['Summary']; Bookings = JsonConverters.fromJson(json['Bookings'],'List',context!); Options = JsonConverters.fromJson(json['Options'],'List',context!); return this; } Map toJson() => { 'Id': Id, 'Kind': Kind, 'Name': Name, 'Severity': Severity, 'Summary': Summary, 'Bookings': JsonConverters.toJson(Bookings,'List',context!), 'Options': JsonConverters.toJson(Options,'List',context!) }; getTypeName() => "ResourceConflictDto"; TypeContext? context = _ctx; } class ResourceConflictsResponse implements IConvertible { List? Conflicts = []; int? EquipmentWatched; int? WorkersWatched; int? CrewsWatched; int? ResolvedInWindow; bool? CanResolve; ResponseStatus? ResponseStatus; ResourceConflictsResponse({this.Conflicts,this.EquipmentWatched,this.WorkersWatched,this.CrewsWatched,this.ResolvedInWindow,this.CanResolve,this.ResponseStatus}); ResourceConflictsResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Conflicts = JsonConverters.fromJson(json['Conflicts'],'List',context!); EquipmentWatched = json['EquipmentWatched']; WorkersWatched = json['WorkersWatched']; CrewsWatched = json['CrewsWatched']; ResolvedInWindow = json['ResolvedInWindow']; CanResolve = json['CanResolve']; ResponseStatus = JsonConverters.fromJson(json['ResponseStatus'],'ResponseStatus',context!); return this; } Map toJson() => { 'Conflicts': JsonConverters.toJson(Conflicts,'List',context!), 'EquipmentWatched': EquipmentWatched, 'WorkersWatched': WorkersWatched, 'CrewsWatched': CrewsWatched, 'ResolvedInWindow': ResolvedInWindow, 'CanResolve': CanResolve, 'ResponseStatus': JsonConverters.toJson(ResponseStatus,'ResponseStatus',context!) }; getTypeName() => "ResourceConflictsResponse"; TypeContext? context = _ctx; } // @Route("/v1/resource-conflicts", "GET") class ResourceConflictsRequest implements IReturn, IConvertible, IGet { int? Window; ResourceConflictsRequest({this.Window}); ResourceConflictsRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Window = json['Window']; return this; } Map toJson() => { 'Window': Window }; createResponse() => ResourceConflictsResponse(); getResponseTypeName() => "ResourceConflictsResponse"; getTypeName() => "ResourceConflictsRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'api.dev.dynamics.trendsic.com', types: { 'ResourceConflictBookingDto': TypeInfo(TypeOf.Class, create:() => ResourceConflictBookingDto()), 'ResourceConflictOptionDto': TypeInfo(TypeOf.Class, create:() => ResourceConflictOptionDto()), 'ResourceConflictDto': TypeInfo(TypeOf.Class, create:() => ResourceConflictDto()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'List': TypeInfo(TypeOf.Class, create:() => []), 'ResourceConflictsResponse': TypeInfo(TypeOf.Class, create:() => ResourceConflictsResponse()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'ResourceConflictsRequest': TypeInfo(TypeOf.Class, create:() => ResourceConflictsRequest()), });