/* Options: Date: 2024-07-03 14:26:33 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: SuperAdminSupportCaseAttachmentQuery.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; abstract class ICompany { String? CompanyId; } class BaseModel implements IConvertible { BaseModel(); BaseModel.fromJson(Map json) : super(); fromMap(Map json) { return this; } Map toJson() => {}; getTypeName() => "BaseModel"; TypeContext? context = _ctx; } class CaseAttachment extends BaseModel implements IConvertible { // @Required() String? CompanyId; int? Id; // @Required() String? FileUrl; DateTime? ModifiedDate; CaseAttachment({this.CompanyId,this.Id,this.FileUrl,this.ModifiedDate}); CaseAttachment.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); CompanyId = json['CompanyId']; Id = json['Id']; FileUrl = json['FileUrl']; ModifiedDate = JsonConverters.fromJson(json['ModifiedDate'],'DateTime',context!); return this; } Map toJson() => super.toJson()..addAll({ 'CompanyId': CompanyId, 'Id': Id, 'FileUrl': FileUrl, 'ModifiedDate': JsonConverters.toJson(ModifiedDate,'DateTime',context!) }); getTypeName() => "CaseAttachment"; TypeContext? context = _ctx; } class SupportCaseAttachmentResponse implements IConvertible { /** * The attachment id */ // @ApiMember(Description="The attachment id") int? Id; /** * The attachment file url */ // @ApiMember(Description="The attachment file url") String? FileUrl; SupportCaseAttachmentResponse({this.Id,this.FileUrl}); SupportCaseAttachmentResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Id = json['Id']; FileUrl = json['FileUrl']; return this; } Map toJson() => { 'Id': Id, 'FileUrl': FileUrl }; getTypeName() => "SupportCaseAttachmentResponse"; TypeContext? context = _ctx; } // @Route("/superadmin/support/cases/{SupportCaseId}/attachments", "GET") // @ApiResponse(Description="You were unauthorized to call this service", StatusCode=401) // @ApiResponse(Description="You have too low privilegies to call this service", StatusCode=403) // @ValidateRequest(Validator="IsAuthenticated") class SuperAdminSupportCaseAttachmentQuery extends QueryDb2 implements IReturn>, ICompany, IConvertible, IGet { /** * Enter the company id, if blank company id and you are an admin, your company id will be used. */ // @ApiMember(Description="Enter the company id, if blank company id and you are an admin, your company id will be used.", IsRequired=true) String? CompanyId; /** * The support case id */ // @ApiMember(Description="The support case id", IsRequired=true, ParameterType="path") int? SupportCaseId; SuperAdminSupportCaseAttachmentQuery({this.CompanyId,this.SupportCaseId}); SuperAdminSupportCaseAttachmentQuery.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); CompanyId = json['CompanyId']; SupportCaseId = json['SupportCaseId']; return this; } Map toJson() => super.toJson()..addAll({ 'CompanyId': CompanyId, 'SupportCaseId': SupportCaseId }); createResponse() => QueryResponse(); getResponseTypeName() => "QueryResponse"; getTypeName() => "SuperAdminSupportCaseAttachmentQuery"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'api.bokamera.se', types: { 'ICompany': TypeInfo(TypeOf.Interface), 'BaseModel': TypeInfo(TypeOf.Class, create:() => BaseModel()), 'CaseAttachment': TypeInfo(TypeOf.Class, create:() => CaseAttachment()), 'SupportCaseAttachmentResponse': TypeInfo(TypeOf.Class, create:() => SupportCaseAttachmentResponse()), 'QueryResponse': TypeInfo(TypeOf.Class, create:() => QueryResponse()), 'SuperAdminSupportCaseAttachmentQuery': TypeInfo(TypeOf.Class, create:() => SuperAdminSupportCaseAttachmentQuery()), 'List': TypeInfo(TypeOf.Class, create:() => []), });