/* Options: Date: 2024-11-21 12:15:10 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: HomepageImagesQuery.* //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 HomepageImage extends BaseModel implements IConvertible { // @Required() String? CompanyId; int? Id; String? Title; String? Description; // @Required() String? ImageUrl; DateTime? ModifiedDate; HomepageImage({this.CompanyId,this.Id,this.Title,this.Description,this.ImageUrl,this.ModifiedDate}); HomepageImage.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); CompanyId = json['CompanyId']; Id = json['Id']; Title = json['Title']; Description = json['Description']; ImageUrl = json['ImageUrl']; ModifiedDate = JsonConverters.fromJson(json['ModifiedDate'],'DateTime',context!); return this; } Map toJson() => super.toJson()..addAll({ 'CompanyId': CompanyId, 'Id': Id, 'Title': Title, 'Description': Description, 'ImageUrl': ImageUrl, 'ModifiedDate': JsonConverters.toJson(ModifiedDate,'DateTime',context!) }); getTypeName() => "HomepageImage"; TypeContext? context = _ctx; } abstract class ICompanyRequest { String? CompanyId; String? SitePath; } class HomepageImageQueryResponse implements IConvertible { /** * The company id. */ // @ApiMember(Description="The company id.") String? CompanyId; /** * The homepage image id. */ // @ApiMember(Description="The homepage image id.") int? Id; /** * The image title. */ // @ApiMember(Description="The image title.") String? Title; /** * The image description. */ // @ApiMember(Description="The image description.") String? Description; /** * The image url. */ // @ApiMember(Description="The image url.") Uri? ImageUrl; HomepageImageQueryResponse({this.CompanyId,this.Id,this.Title,this.Description,this.ImageUrl}); HomepageImageQueryResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { CompanyId = json['CompanyId']; Id = json['Id']; Title = json['Title']; Description = json['Description']; ImageUrl = JsonConverters.fromJson(json['ImageUrl'],'Uri',context!); return this; } Map toJson() => { 'CompanyId': CompanyId, 'Id': Id, 'Title': Title, 'Description': Description, 'ImageUrl': JsonConverters.toJson(ImageUrl,'Uri',context!) }; getTypeName() => "HomepageImageQueryResponse"; TypeContext? context = _ctx; } // @Route("/homepage/images", "GET") class HomepageImagesQuery extends QueryDb2 implements IReturn>, ICompanyRequest, IConvertible, IGet { /** * Enter the company you want to see news for, if blank and you are an admin, your company id will be used */ // @ApiMember(Description="Enter the company you want to see news for, if blank and you are an admin, your company id will be used", ParameterType="query") String? CompanyId; /** * The image id. */ // @ApiMember(Description="The image id.") int? Id; /** * The homeage sitepath. */ // @ApiMember(Description="The homeage sitepath.") String? SitePath; HomepageImagesQuery({this.CompanyId,this.Id,this.SitePath}); HomepageImagesQuery.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); CompanyId = json['CompanyId']; Id = json['Id']; SitePath = json['SitePath']; return this; } Map toJson() => super.toJson()..addAll({ 'CompanyId': CompanyId, 'Id': Id, 'SitePath': SitePath }); createResponse() => QueryResponse(); getResponseTypeName() => "QueryResponse"; getTypeName() => "HomepageImagesQuery"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'api.bokamera.se', types: { 'BaseModel': TypeInfo(TypeOf.Class, create:() => BaseModel()), 'HomepageImage': TypeInfo(TypeOf.Class, create:() => HomepageImage()), 'ICompanyRequest': TypeInfo(TypeOf.Interface), 'HomepageImageQueryResponse': TypeInfo(TypeOf.Class, create:() => HomepageImageQueryResponse()), 'Uri': TypeInfo(TypeOf.Class, create:() => Uri()), 'QueryResponse': TypeInfo(TypeOf.Class, create:() => QueryResponse()), 'HomepageImagesQuery': TypeInfo(TypeOf.Class, create:() => HomepageImagesQuery()), 'List': TypeInfo(TypeOf.Class, create:() => []), });