Converts preview data image to the map representation, encodable to JSON.
Map<String, dynamic> toJson() => _$PreviewDataImageToJson(this);