/* Options: Date: 2024-12-22 12:34:43 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: LockTech.* //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 Technology to Owner or Admin users */ // @Route("/admin/technology/{TechnologyId}/lock") // @Api(Description="Limit updates to Technology to Owner or Admin users") class LockTech implements IReturn, IPut, IConvertible { // @Validate(Validator="GreaterThan(0)") int? technologyId; bool? isLocked; LockTech({this.technologyId,this.isLocked}); LockTech.fromJson(Map json) { fromMap(json); } fromMap(Map json) { technologyId = json['technologyId']; isLocked = json['isLocked']; return this; } Map toJson() => { 'technologyId': technologyId, 'isLocked': isLocked }; createResponse() => LockStackResponse(); getResponseTypeName() => "LockStackResponse"; getTypeName() => "LockTech"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'techstacks.io', types: { 'LockStackResponse': TypeInfo(TypeOf.Class, create:() => LockStackResponse()), 'LockTech': TypeInfo(TypeOf.Class, create:() => LockTech()), });