/* Options: Date: 2024-06-26 11:49:52 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: CreateError.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; abstract class ICompany { String? CompanyId; } class ErrorQueryResponse implements IConvertible { String? CompanyId; int? Id; String? ExceptionName; String? ExceptionMessage; String? ExceptionSource; String? InnerExceptionName; String? StackTrace; String? URL; String? LoggedInUser; bool? Visible; String? IPAddress; DateTime? CreatedDate; String? Request; String? Session; ErrorQueryResponse({this.CompanyId,this.Id,this.ExceptionName,this.ExceptionMessage,this.ExceptionSource,this.InnerExceptionName,this.StackTrace,this.URL,this.LoggedInUser,this.Visible,this.IPAddress,this.CreatedDate,this.Request,this.Session}); ErrorQueryResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { CompanyId = json['CompanyId']; Id = json['Id']; ExceptionName = json['ExceptionName']; ExceptionMessage = json['ExceptionMessage']; ExceptionSource = json['ExceptionSource']; InnerExceptionName = json['InnerExceptionName']; StackTrace = json['StackTrace']; URL = json['URL']; LoggedInUser = json['LoggedInUser']; Visible = json['Visible']; IPAddress = json['IPAddress']; CreatedDate = JsonConverters.fromJson(json['CreatedDate'],'DateTime',context!); Request = json['Request']; Session = json['Session']; return this; } Map toJson() => { 'CompanyId': CompanyId, 'Id': Id, 'ExceptionName': ExceptionName, 'ExceptionMessage': ExceptionMessage, 'ExceptionSource': ExceptionSource, 'InnerExceptionName': InnerExceptionName, 'StackTrace': StackTrace, 'URL': URL, 'LoggedInUser': LoggedInUser, 'Visible': Visible, 'IPAddress': IPAddress, 'CreatedDate': JsonConverters.toJson(CreatedDate,'DateTime',context!), 'Request': Request, 'Session': Session }; getTypeName() => "ErrorQueryResponse"; TypeContext? context = _ctx; } // @Route("/errors/", "POST") class CreateError implements IReturn, ICompany, IConvertible, IPost { /** * The company id, if empty will use the company id for the user you are logged in with. */ // @ApiMember(Description="The company id, if empty will use the company id for the user you are logged in with.") String? CompanyId; /** * */ // @ApiMember(Description="", IsRequired=true) String? ExceptionName; /** * */ // @ApiMember(Description="", IsRequired=true) String? ExceptionMessage; /** * */ // @ApiMember(Description="") String? ExceptionSource; /** * */ // @ApiMember(Description="", IsRequired=true) String? InnerExceptionName; /** * */ // @ApiMember(Description="", IsRequired=true) String? StackTrace; /** * */ // @ApiMember(Description="", IsRequired=true) String? URL; /** * */ // @ApiMember(Description="") String? LoggedInUser; /** * */ // @ApiMember(Description="") String? IPAddress; /** * */ // @ApiMember(Description="") String? Request; /** * */ // @ApiMember(Description="") String? Session; CreateError({this.CompanyId,this.ExceptionName,this.ExceptionMessage,this.ExceptionSource,this.InnerExceptionName,this.StackTrace,this.URL,this.LoggedInUser,this.IPAddress,this.Request,this.Session}); CreateError.fromJson(Map json) { fromMap(json); } fromMap(Map json) { CompanyId = json['CompanyId']; ExceptionName = json['ExceptionName']; ExceptionMessage = json['ExceptionMessage']; ExceptionSource = json['ExceptionSource']; InnerExceptionName = json['InnerExceptionName']; StackTrace = json['StackTrace']; URL = json['URL']; LoggedInUser = json['LoggedInUser']; IPAddress = json['IPAddress']; Request = json['Request']; Session = json['Session']; return this; } Map toJson() => { 'CompanyId': CompanyId, 'ExceptionName': ExceptionName, 'ExceptionMessage': ExceptionMessage, 'ExceptionSource': ExceptionSource, 'InnerExceptionName': InnerExceptionName, 'StackTrace': StackTrace, 'URL': URL, 'LoggedInUser': LoggedInUser, 'IPAddress': IPAddress, 'Request': Request, 'Session': Session }; createResponse() => ErrorQueryResponse(); getResponseTypeName() => "ErrorQueryResponse"; getTypeName() => "CreateError"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'testapi.bokamera.se', types: { 'ICompany': TypeInfo(TypeOf.Interface), 'ErrorQueryResponse': TypeInfo(TypeOf.Class, create:() => ErrorQueryResponse()), 'CreateError': TypeInfo(TypeOf.Class, create:() => CreateError()), });