/* Options: Date: 2026-06-27 20:26:29 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: SetWorkspaceModulesRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class WorkspaceFeatureSelection implements IConvertible { String? Key; bool? Enabled; WorkspaceFeatureSelection({this.Key,this.Enabled}); WorkspaceFeatureSelection.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Key = json['Key']; Enabled = json['Enabled']; return this; } Map toJson() => { 'Key': Key, 'Enabled': Enabled }; getTypeName() => "WorkspaceFeatureSelection"; TypeContext? context = _ctx; } class WorkspaceModuleFeature implements IConvertible { String? Key; String? Name; bool? Enabled; WorkspaceModuleFeature({this.Key,this.Name,this.Enabled}); WorkspaceModuleFeature.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Key = json['Key']; Name = json['Name']; Enabled = json['Enabled']; return this; } Map toJson() => { 'Key': Key, 'Name': Name, 'Enabled': Enabled }; getTypeName() => "WorkspaceModuleFeature"; TypeContext? context = _ctx; } class WorkspaceModule implements IConvertible { String? Key; String? Name; String? Letter; String? Color; String? Question; String? Description; List? Features = []; WorkspaceModule({this.Key,this.Name,this.Letter,this.Color,this.Question,this.Description,this.Features}); WorkspaceModule.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Key = json['Key']; Name = json['Name']; Letter = json['Letter']; Color = json['Color']; Question = json['Question']; Description = json['Description']; Features = JsonConverters.fromJson(json['Features'],'List',context!); return this; } Map toJson() => { 'Key': Key, 'Name': Name, 'Letter': Letter, 'Color': Color, 'Question': Question, 'Description': Description, 'Features': JsonConverters.toJson(Features,'List',context!) }; getTypeName() => "WorkspaceModule"; TypeContext? context = _ctx; } class WorkspaceModulesResponse implements IConvertible { List? Modules = []; ResponseStatus? ResponseStatus; WorkspaceModulesResponse({this.Modules,this.ResponseStatus}); WorkspaceModulesResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Modules = JsonConverters.fromJson(json['Modules'],'List',context!); ResponseStatus = JsonConverters.fromJson(json['ResponseStatus'],'ResponseStatus',context!); return this; } Map toJson() => { 'Modules': JsonConverters.toJson(Modules,'List',context!), 'ResponseStatus': JsonConverters.toJson(ResponseStatus,'ResponseStatus',context!) }; getTypeName() => "WorkspaceModulesResponse"; TypeContext? context = _ctx; } // @Route("/v1/workspace/modules", "PUT,OPTIONS") class SetWorkspaceModulesRequest implements IReturn, IConvertible, IPut { List? Features = []; SetWorkspaceModulesRequest({this.Features}); SetWorkspaceModulesRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Features = JsonConverters.fromJson(json['Features'],'List',context!); return this; } Map toJson() => { 'Features': JsonConverters.toJson(Features,'List',context!) }; createResponse() => WorkspaceModulesResponse(); getResponseTypeName() => "WorkspaceModulesResponse"; getTypeName() => "SetWorkspaceModulesRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'api.dev.dynamics.trendsic.com', types: { 'WorkspaceFeatureSelection': TypeInfo(TypeOf.Class, create:() => WorkspaceFeatureSelection()), 'WorkspaceModuleFeature': TypeInfo(TypeOf.Class, create:() => WorkspaceModuleFeature()), 'WorkspaceModule': TypeInfo(TypeOf.Class, create:() => WorkspaceModule()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'WorkspaceModulesResponse': TypeInfo(TypeOf.Class, create:() => WorkspaceModulesResponse()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'SetWorkspaceModulesRequest': TypeInfo(TypeOf.Class, create:() => SetWorkspaceModulesRequest()), 'List': TypeInfo(TypeOf.Class, create:() => []), });