toString method
Serialize the query payload to a String.
Implementation
@override
String toString() {
final buffer = StringBuffer(target?.isNotEmpty == true ? '$target: ' : '');
buffer.write(message);
if (params != null) {
buffer.write(' ($params)');
}
if (timestamp != null) {
buffer.write(' - $timestamp');
}
if (duration != null) {
String ms = ' - ${duration!.inMilliseconds}ms';
if (timestamp != null) {
ms = '(${duration!.inMilliseconds}ms)';
}
buffer.write(ms);
}
return buffer.toString();
}