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