Converts this content to JSON-compatible values.
@override Map<String, Object?> toJson() => {'type': 'image', 'path': path};