/* Options: Date: 2024-11-21 11:37:46 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: CompanyTrialsQuery.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; abstract class ICompany { String? CompanyId; } class TrialQueryResponse implements IConvertible { int? Id; String? Name; int? TrialDays; TrialQueryResponse({this.Id,this.Name,this.TrialDays}); TrialQueryResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Id = json['Id']; Name = json['Name']; TrialDays = json['TrialDays']; return this; } Map toJson() => { 'Id': Id, 'Name': Name, 'TrialDays': TrialDays }; getTypeName() => "TrialQueryResponse"; TypeContext? context = _ctx; } class CompanyTrialQueryResponse implements IConvertible { int? TrialTypeId; TrialQueryResponse? TrialType; DateTime? Started; DateTime? Created; DateTime? ValidTo; bool? Active; CompanyTrialQueryResponse({this.TrialTypeId,this.TrialType,this.Started,this.Created,this.ValidTo,this.Active}); CompanyTrialQueryResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { TrialTypeId = json['TrialTypeId']; TrialType = JsonConverters.fromJson(json['TrialType'],'TrialQueryResponse',context!); Started = JsonConverters.fromJson(json['Started'],'DateTime',context!); Created = JsonConverters.fromJson(json['Created'],'DateTime',context!); ValidTo = JsonConverters.fromJson(json['ValidTo'],'DateTime',context!); Active = json['Active']; return this; } Map toJson() => { 'TrialTypeId': TrialTypeId, 'TrialType': JsonConverters.toJson(TrialType,'TrialQueryResponse',context!), 'Started': JsonConverters.toJson(Started,'DateTime',context!), 'Created': JsonConverters.toJson(Created,'DateTime',context!), 'ValidTo': JsonConverters.toJson(ValidTo,'DateTime',context!), 'Active': Active }; getTypeName() => "CompanyTrialQueryResponse"; TypeContext? context = _ctx; } // @Route("/trials/company/", "GET") // @ValidateRequest(Validator="IsAuthenticated") class CompanyTrialsQuery implements IReturn, ICompany, IConvertible, IGet { /** * Enter the company and id you want to see the information for a resource, if blank company id and you are an admin, your company id will be used. If blank id, all resources will be shown */ // @ApiMember(Description="Enter the company and id you want to see the information for a resource, if blank company id and you are an admin, your company id will be used. If blank id, all resources will be shown ", IsRequired=true, ParameterType="query") String? CompanyId; /** * Trial Id */ // @ApiMember(Description="Trial Id", IsRequired=true, ParameterType="query") int? Id; CompanyTrialsQuery({this.CompanyId,this.Id}); CompanyTrialsQuery.fromJson(Map json) { fromMap(json); } fromMap(Map json) { CompanyId = json['CompanyId']; Id = json['Id']; return this; } Map toJson() => { 'CompanyId': CompanyId, 'Id': Id }; createResponse() => CompanyTrialQueryResponse(); getResponseTypeName() => "CompanyTrialQueryResponse"; getTypeName() => "CompanyTrialsQuery"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'api.bokamera.se', types: { 'ICompany': TypeInfo(TypeOf.Interface), 'TrialQueryResponse': TypeInfo(TypeOf.Class, create:() => TrialQueryResponse()), 'CompanyTrialQueryResponse': TypeInfo(TypeOf.Class, create:() => CompanyTrialQueryResponse()), 'CompanyTrialsQuery': TypeInfo(TypeOf.Class, create:() => CompanyTrialsQuery()), });