toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final remap = <String, dynamic>{
    "levelValue": level.value,
    "levelName": level.name,
    "message": message,
    "loggerName": loggerName,
    "time": time.millisecondsSinceEpoch,
    "sequenceNumber": sequenceNumber,
    "content": convert.jsonEncode(content),
  };
  return remap;
}