/* Options: Date: 2024-12-22 12:04:58 Version: 8.51 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://techstacks.io //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: LockTechStack.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class LockStackResponse implements IConvertible { LockStackResponse(); LockStackResponse.fromJson(Map json) : super(); fromMap(Map json) { return this; } Map toJson() => {}; getTypeName() => "LockStackResponse"; TypeContext? context = _ctx; } /** * Limit updates to TechStack to Owner or Admin users */ // @Route("/admin/techstacks/{TechnologyStackId}/lock") class LockTechStack implements IReturn, IPut, IConvertible { // @Validate(Validator="GreaterThan(0)") int? technologyStackId; bool? isLocked; LockTechStack({this.technologyStackId,this.isLocked}); LockTechStack.fromJson(Map json) { fromMap(json); } fromMap(Map json) { technologyStackId = json['technologyStackId']; isLocked = json['isLocked']; return this; } Map toJson() => { 'technologyStackId': technologyStackId, 'isLocked': isLocked }; createResponse() => LockStackResponse(); getResponseTypeName() => "LockStackResponse"; getTypeName() => "LockTechStack"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'techstacks.io', types: { 'LockStackResponse': TypeInfo(TypeOf.Class, create:() => LockStackResponse()), 'LockTechStack': TypeInfo(TypeOf.Class, create:() => LockTechStack()), });