/* Options: Date: 2024-11-23 08:56:25 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: TrialsQuery.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class BaseModel implements IConvertible { BaseModel(); BaseModel.fromJson(Map json) : super(); fromMap(Map json) { return this; } Map toJson() => {}; getTypeName() => "BaseModel"; TypeContext? context = _ctx; } class TrialType extends BaseModel implements IConvertible { // @Required() String? Name; // @Required() int? Days; DateTime? ModifiedDate; int? Id; TrialType({this.Name,this.Days,this.ModifiedDate,this.Id}); TrialType.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); Name = json['Name']; Days = json['Days']; ModifiedDate = JsonConverters.fromJson(json['ModifiedDate'],'DateTime',context!); Id = json['Id']; return this; } Map toJson() => super.toJson()..addAll({ 'Name': Name, 'Days': Days, 'ModifiedDate': JsonConverters.toJson(ModifiedDate,'DateTime',context!), 'Id': Id }); getTypeName() => "TrialType"; TypeContext? context = _ctx; } 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; } // @Route("/trials", "GET") // @ValidateRequest(Validator="IsAuthenticated") class TrialsQuery extends QueryDb2 implements IReturn>, IConvertible, IGet { /** * Trial Id */ // @ApiMember(Description="Trial Id", IsRequired=true, ParameterType="query") int? Id; TrialsQuery({this.Id}); TrialsQuery.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); Id = json['Id']; return this; } Map toJson() => super.toJson()..addAll({ 'Id': Id }); createResponse() => QueryResponse(); getResponseTypeName() => "QueryResponse"; getTypeName() => "TrialsQuery"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'api.bokamera.se', types: { 'BaseModel': TypeInfo(TypeOf.Class, create:() => BaseModel()), 'TrialType': TypeInfo(TypeOf.Class, create:() => TrialType()), 'TrialQueryResponse': TypeInfo(TypeOf.Class, create:() => TrialQueryResponse()), 'QueryResponse': TypeInfo(TypeOf.Class, create:() => QueryResponse()), 'TrialsQuery': TypeInfo(TypeOf.Class, create:() => TrialsQuery()), 'List': TypeInfo(TypeOf.Class, create:() => []), });