/* Options: Date: 2024-12-03 17:58:18 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: ExportReport.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; enum SendReceiptMethod { Email, PdfExport, } // @Route("/bookings/{BookingId}/reports/{ReportId}", "GET") // @ValidateRequest(Validator="IsAuthenticated") class ExportReport implements IConvertible, IGet { /** * Id of the booking */ // @ApiMember(Description="Id of the booking", IsRequired=true, ParameterType="path") int? BookingId; /** * 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; /** * Id of the report */ // @ApiMember(Description="Id of the report", IsRequired=true, ParameterType="path") int? ReportId; SendReceiptMethod? SendReceiptMethod; ExportReport({this.BookingId,this.CompanyId,this.ReportId,this.SendReceiptMethod}); ExportReport.fromJson(Map json) { fromMap(json); } fromMap(Map json) { BookingId = json['BookingId']; CompanyId = json['CompanyId']; ReportId = json['ReportId']; SendReceiptMethod = JsonConverters.fromJson(json['SendReceiptMethod'],'SendReceiptMethod',context!); return this; } Map toJson() => { 'BookingId': BookingId, 'CompanyId': CompanyId, 'ReportId': ReportId, 'SendReceiptMethod': JsonConverters.toJson(SendReceiptMethod,'SendReceiptMethod',context!) }; getTypeName() => "ExportReport"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'api.bokamera.se', types: { 'SendReceiptMethod': TypeInfo(TypeOf.Enum, enumValues:SendReceiptMethod.values), 'ExportReport': TypeInfo(TypeOf.Class, create:() => ExportReport()), });