LogxxRecord.fromJson constructor

LogxxRecord.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory LogxxRecord.fromJson(Map<String, dynamic> json) {
  return LogxxRecord(
    level: Level(json["levelName"] ?? "", json["levelValue"] ?? -777),
    message: json["message"] ?? "",
    time: DateTime.fromMillisecondsSinceEpoch(json["time"] ?? 0),
    content: LogxxItem.fromJsonStr(json["content"] ?? ""),
    loggerName: json["loggerName"] ?? "",
    sequenceNumber: json["sequenceNumber"] ?? -1,
  );
}