toMap method
Implementation
@override
Map<String, Object?> toMap() {
// TODO: [metadata] should be merged into the same map.
return {
'title': title,
'path': path.replaceFirst('.md', '/'),
'content': content,
'metadata': metadata,
};
}