toJson method

Map<String, dynamic> toJson()

Converts class to json

Implementation

Map<String, dynamic> toJson() {
  return {
    'className': className,
    'methodName': methodName,
    'text': text,
    'timestamp': timestamp,
    'timeInMillis': timeInMillis,
    'exception': exception,
    'dataLogType': dataLogType,
    'logLevel': LogLevelConverter.fromEnumToString(logLevel),
    'stacktrace': stacktrace,
  };
}