getJsonStr static method
Implementation
static String getJsonStr({
required Level level,
required String? message,
required DateTime time,
required LogxxItem? content,
String loggerName = "",
int sequenceNumber = -1,
}) {
assert(null != message || null != content);
final remap = {
"levelValue": level.value,
"levelName": level.name,
"message": message,
"loggerName": loggerName,
"time": time.millisecondsSinceEpoch,
"sequenceNumber": sequenceNumber,
"content": message ?? convert.jsonEncode(content!),
};
return convert.jsonEncode(remap);
}