/* Options: Date: 2025-04-05 01:53:14 Version: 8.23 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://testapi.bokamera.se //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: CreateCompanyCommentSuperAdminUser.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; abstract class ICompany { String? CompanyId; } enum CommentsType { NormalComment, CallBackPhoneComment, CallBackEmailComment, CallBackMeetingBookedComment, CallBackNotInterestedComment, } class CommentsType extends BaseModel implements IConvertible { int? Id; String? Name; String? Description; DateTime? ModifiedDate; CommentsType({this.Id,this.Name,this.Description,this.ModifiedDate}); CommentsType.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); Id = json['Id']; Name = json['Name']; Description = json['Description']; ModifiedDate = JsonConverters.fromJson(json['ModifiedDate'],'DateTime',context!); return this; } Map toJson() => super.toJson()..addAll({ 'Id': Id, 'Name': Name, 'Description': Description, 'ModifiedDate': JsonConverters.toJson(ModifiedDate,'DateTime',context!) }); getTypeName() => "CommentsType"; TypeContext? context = _ctx; } class CommentsTypeResponse implements IConvertible { int? Id; String? Name; String? Description; CommentsTypeResponse({this.Id,this.Name,this.Description}); CommentsTypeResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Id = json['Id']; Name = json['Name']; Description = json['Description']; return this; } Map toJson() => { 'Id': Id, 'Name': Name, 'Description': Description }; getTypeName() => "CommentsTypeResponse"; TypeContext? context = _ctx; } class CompanyCommentsResponse implements IConvertible { // @ApiMember() String? CompanyId; // @ApiMember() int? Id; // @ApiMember(IsRequired=true) String? Comment; // @ApiMember(IsRequired=true) CommentsType? CommentTypeId; // @ApiMember(IsRequired=true) CommentsTypeResponse? CommentType; /** * The updated date */ // @ApiMember(Description="The updated date") DateTime? Updated; /** * The created date */ // @ApiMember(Description="The created date") DateTime? Created; /** * The created by */ // @ApiMember(Description="The created by") String? CreatedBy; CompanyCommentsResponse({this.CompanyId,this.Id,this.Comment,this.CommentTypeId,this.CommentType,this.Updated,this.Created,this.CreatedBy}); CompanyCommentsResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { CompanyId = json['CompanyId']; Id = json['Id']; Comment = json['Comment']; CommentTypeId = JsonConverters.fromJson(json['CommentTypeId'],'CommentsType',context!); CommentType = JsonConverters.fromJson(json['CommentType'],'CommentsTypeResponse',context!); Updated = JsonConverters.fromJson(json['Updated'],'DateTime',context!); Created = JsonConverters.fromJson(json['Created'],'DateTime',context!); CreatedBy = json['CreatedBy']; return this; } Map toJson() => { 'CompanyId': CompanyId, 'Id': Id, 'Comment': Comment, 'CommentTypeId': JsonConverters.toJson(CommentTypeId,'CommentsType',context!), 'CommentType': JsonConverters.toJson(CommentType,'CommentsTypeResponse',context!), 'Updated': JsonConverters.toJson(Updated,'DateTime',context!), 'Created': JsonConverters.toJson(Created,'DateTime',context!), 'CreatedBy': CreatedBy }; getTypeName() => "CompanyCommentsResponse"; TypeContext? context = _ctx; } // @Route("/superadmin/company/{CompanyId}/comments", "POST") // @ApiResponse(Description="", StatusCode=400) // @ApiResponse(Description="Returned if the current user is not allowed to perform the action", StatusCode=401) class CreateCompanyCommentSuperAdminUser implements IReturn, ICompany, IConvertible, IPost { /** * Enter the companyId for the customer */ // @ApiMember(Description="Enter the companyId for the customer", IsRequired=true, ParameterType="query") String? CompanyId; // @ApiMember(IsRequired=true) String? Comment; // @ApiMember(IsRequired=true) CommentsType? CommentType; CreateCompanyCommentSuperAdminUser({this.CompanyId,this.Comment,this.CommentType}); CreateCompanyCommentSuperAdminUser.fromJson(Map json) { fromMap(json); } fromMap(Map json) { CompanyId = json['CompanyId']; Comment = json['Comment']; CommentType = JsonConverters.fromJson(json['CommentType'],'CommentsType',context!); return this; } Map toJson() => { 'CompanyId': CompanyId, 'Comment': Comment, 'CommentType': JsonConverters.toJson(CommentType,'CommentsType',context!) }; createResponse() => CompanyCommentsResponse(); getResponseTypeName() => "CompanyCommentsResponse"; getTypeName() => "CreateCompanyCommentSuperAdminUser"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'testapi.bokamera.se', types: { 'ICompany': TypeInfo(TypeOf.Interface), 'CommentsType': TypeInfo(TypeOf.Enum, enumValues:CommentsType.values), 'CommentsTypeResponse': TypeInfo(TypeOf.Class, create:() => CommentsTypeResponse()), 'CompanyCommentsResponse': TypeInfo(TypeOf.Class, create:() => CompanyCommentsResponse()), 'CreateCompanyCommentSuperAdminUser': TypeInfo(TypeOf.Class, create:() => CreateCompanyCommentSuperAdminUser()), });