toJson method

Map<String, dynamic> toJson()

Converts this SocialMeta object into a JSON map.

Only non-null fields are included in the returned map.

Implementation

Map<String, dynamic> toJson() => {
      if (title != null) 'title': title,
      if (description != null) 'description': description,
      if (imageUrl != null) 'imageUrl': imageUrl,
    };