/* Options: Date: 2024-07-03 13:59:22 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: SupportCaseCommentQuery.* //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 CaseComment extends BaseModel implements IConvertible { // @Required() String? CompanyId; // @Required() int? SupportCaseId; int? Id; // @Required() String? Comment; // @Required() bool? Deleted; // @Required() String? CreatedBy; // @Required() DateTime? Created; DateTime? ModifiedDate; CaseComment({this.CompanyId,this.SupportCaseId,this.Id,this.Comment,this.Deleted,this.CreatedBy,this.Created,this.ModifiedDate}); CaseComment.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); CompanyId = json['CompanyId']; SupportCaseId = json['SupportCaseId']; Id = json['Id']; Comment = json['Comment']; Deleted = json['Deleted']; CreatedBy = json['CreatedBy']; Created = JsonConverters.fromJson(json['Created'],'DateTime',context!); ModifiedDate = JsonConverters.fromJson(json['ModifiedDate'],'DateTime',context!); return this; } Map toJson() => super.toJson()..addAll({ 'CompanyId': CompanyId, 'SupportCaseId': SupportCaseId, 'Id': Id, 'Comment': Comment, 'Deleted': Deleted, 'CreatedBy': CreatedBy, 'Created': JsonConverters.toJson(Created,'DateTime',context!), 'ModifiedDate': JsonConverters.toJson(ModifiedDate,'DateTime',context!) }); getTypeName() => "CaseComment"; TypeContext? context = _ctx; } class SupportCaseCommentsResponse implements IConvertible { /** * The case id */ // @ApiMember(Description="The case id") int? SupportCaseId; /** * The comments id */ // @ApiMember(Description="The comments id") int? Id; /** * The case comment */ // @ApiMember(Description="The case comment") String? Comment; /** * The case comment created by */ // @ApiMember(Description="The case comment created by") String? CreatedBy; /** * The case comment created date */ // @ApiMember(Description="The case comment created date") DateTime? Created; SupportCaseCommentsResponse({this.SupportCaseId,this.Id,this.Comment,this.CreatedBy,this.Created}); SupportCaseCommentsResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { SupportCaseId = json['SupportCaseId']; Id = json['Id']; Comment = json['Comment']; CreatedBy = json['CreatedBy']; Created = JsonConverters.fromJson(json['Created'],'DateTime',context!); return this; } Map toJson() => { 'SupportCaseId': SupportCaseId, 'Id': Id, 'Comment': Comment, 'CreatedBy': CreatedBy, 'Created': JsonConverters.toJson(Created,'DateTime',context!) }; getTypeName() => "SupportCaseCommentsResponse"; TypeContext? context = _ctx; } // @Route("/support/cases/{SupportCaseId}/comments", "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 SupportCaseCommentQuery 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; SupportCaseCommentQuery({this.CompanyId,this.SupportCaseId}); SupportCaseCommentQuery.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() => "SupportCaseCommentQuery"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'api.bokamera.se', types: { 'ICompany': TypeInfo(TypeOf.Interface), 'BaseModel': TypeInfo(TypeOf.Class, create:() => BaseModel()), 'CaseComment': TypeInfo(TypeOf.Class, create:() => CaseComment()), 'SupportCaseCommentsResponse': TypeInfo(TypeOf.Class, create:() => SupportCaseCommentsResponse()), 'QueryResponse': TypeInfo(TypeOf.Class, create:() => QueryResponse()), 'SupportCaseCommentQuery': TypeInfo(TypeOf.Class, create:() => SupportCaseCommentQuery()), 'List': TypeInfo(TypeOf.Class, create:() => []), });