toJson method
Implementation
Map<String, Object?> toJson() {
final matrixImageSize = this.matrixImageSize;
final ogImage = this.ogImage;
return {
if (matrixImageSize != null) 'matrix:image:size': matrixImageSize,
if (ogImage != null) 'og:image': ogImage.toString(),
};
}