/* Options: Date: 2026-04-04 01:04:08 Version: 8.52 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://pfapi.pstpf.com.au/api //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: AddLog.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; // @ApiResponse(Description="Returns the log reference id and response status") class AddLogResponse implements IConvertible { String? LogId; ResponseStatus? ResponseStatus; AddLogResponse({this.LogId,this.ResponseStatus}); AddLogResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { LogId = json['LogId']; ResponseStatus = JsonConverters.fromJson(json['ResponseStatus'],'ResponseStatus',context!); return this; } Map toJson() => { 'LogId': LogId, 'ResponseStatus': JsonConverters.toJson(ResponseStatus,'ResponseStatus',context!) }; getTypeName() => "AddLogResponse"; TypeContext? context = _ctx; } /** * Add a log entry to the logging database */ // @Route("/logs", "POST") // @Api(Description="Add a log entry to the logging database") class AddLog implements IReturn, IConvertible, IPost { /** * Log Category - Information = 1, Warning = 2, AppError = 3 */ // @ApiMember(Description="Log Category - Information = 1, Warning = 2, AppError = 3") int? Category; String? LogEntry; String? Browser; String? PerspectiveSessionId; AddLog({this.Category,this.LogEntry,this.Browser,this.PerspectiveSessionId}); AddLog.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Category = json['Category']; LogEntry = json['LogEntry']; Browser = json['Browser']; PerspectiveSessionId = json['PerspectiveSessionId']; return this; } Map toJson() => { 'Category': Category, 'LogEntry': LogEntry, 'Browser': Browser, 'PerspectiveSessionId': PerspectiveSessionId }; createResponse() => AddLogResponse(); getResponseTypeName() => "AddLogResponse"; getTypeName() => "AddLog"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'pfapi.pstpf.com.au', types: { 'AddLogResponse': TypeInfo(TypeOf.Class, create:() => AddLogResponse()), 'AddLog': TypeInfo(TypeOf.Class, create:() => AddLog()), });