toJson method

Map<String, Object?> toJson()

Implementation

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