/* Options: Date: 2024-11-21 12:35:52 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: ResyncBookingToCodeLock.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; abstract class ICompany { String? CompanyId; } // @Route("/codelock/resync/{bookingid}", "POST") // @ValidateRequest(Validator="IsAuthenticated") class ResyncBookingToCodeLock implements ICompany, IConvertible, IPost { /** * 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.") String? CompanyId; /** * Booking id */ // @ApiMember(Description="Booking id", IsRequired=true, ParameterType="path") int? BookingId; ResyncBookingToCodeLock({this.CompanyId,this.BookingId}); ResyncBookingToCodeLock.fromJson(Map json) { fromMap(json); } fromMap(Map json) { CompanyId = json['CompanyId']; BookingId = json['BookingId']; return this; } Map toJson() => { 'CompanyId': CompanyId, 'BookingId': BookingId }; getTypeName() => "ResyncBookingToCodeLock"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'api.bokamera.se', types: { 'ICompany': TypeInfo(TypeOf.Interface), 'ResyncBookingToCodeLock': TypeInfo(TypeOf.Class, create:() => ResyncBookingToCodeLock()), });