fromJson static method

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

create Log from json

Implementation

static Log fromJson(Map<String, dynamic> json) {
  return Log(
    className: json['className'],
    methodName: json['methodName'],
    text: json['text'],
    timestamp: json['timestamp'],
    timeInMillis: json['timeInMillis'],
    exception: json['exception'],
    dataLogType: json['dataLogType'],
    logLevel: LogLevelConverter.fromStringToEnum(json['logLevel']),
    stacktrace: json['stacktrace'],
  );
}