toJson method
Implementation
Map<String, dynamic> toJson() {
return <String, dynamic>{
'time': time != null
? time!.toIso8601String()
: DateTime.now().toIso8601String(),
'source': source,
'level': level,
'correlation_id': correlation_id,
'error': error,
'message': message
};
}