toJson method
Implementation
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['timestamp'] = timestamp;
data['line'] = line;
data['level'] = level;
data['env'] = env;
if (app != null) {
data['app'] = app;
}
if (meta != null) {
data['meta'] = meta;
}
return data;
}