toJson method
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,
};
}