toMap method
Implementation
Map toMap() {
Map jsonData = {
"@type": runtimeType.toString(),
};
// print("Saoskasoakso");
final DiagnosticPropertiesBuilder builder = DiagnosticPropertiesBuilder();
debugFillProperties(builder);
// debugFillProperties(properties)
for (var element in builder.properties) {
jsonData[element.name] = element.value;
}
return jsonData;
}