/* Options: Date: 2024-07-03 12:41:05 Version: 8.23 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://api.bokamera.se //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: CodeLockZesecUnlock.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class CodeLockZesecUnlockResponse implements IConvertible { /** * The status for unlocking the door */ // @ApiMember(DataType="string", Description="The status for unlocking the door") String? Status; CodeLockZesecUnlockResponse({this.Status}); CodeLockZesecUnlockResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Status = json['Status']; return this; } Map toJson() => { 'Status': Status }; getTypeName() => "CodeLockZesecUnlockResponse"; TypeContext? context = _ctx; } // @Route("/codelock/zesec/unlock", "POST") // @ApiResponse(Description="You were unauthorized to call this service", StatusCode=401) // @ApiResponse(Description="You have too low privileges to call this service", StatusCode=403) // @ValidateRequest(Validator="IsAuthenticated") class CodeLockZesecUnlock implements IReturn, IConvertible, IPost { /** * The Company Id of the company you want to unlock the door for. */ // @ApiMember(Description="The Company Id of the company you want to unlock the door for.") String? CompanyId; /** * The company id, if empty will use the company id for the user you are logged in with. */ // @ApiMember(Description="The company id, if empty will use the company id for the user you are logged in with.") int? BookingId; CodeLockZesecUnlock({this.CompanyId,this.BookingId}); CodeLockZesecUnlock.fromJson(Map json) { fromMap(json); } fromMap(Map json) { CompanyId = json['CompanyId']; BookingId = json['BookingId']; return this; } Map toJson() => { 'CompanyId': CompanyId, 'BookingId': BookingId }; createResponse() => CodeLockZesecUnlockResponse(); getResponseTypeName() => "CodeLockZesecUnlockResponse"; getTypeName() => "CodeLockZesecUnlock"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'api.bokamera.se', types: { 'CodeLockZesecUnlockResponse': TypeInfo(TypeOf.Class, create:() => CodeLockZesecUnlockResponse()), 'CodeLockZesecUnlock': TypeInfo(TypeOf.Class, create:() => CodeLockZesecUnlock()), });