SocialMeta.fromJson constructor

SocialMeta.fromJson(
  1. Map<String, dynamic> json
)

Creates a SocialMeta object from a JSON map.

The keys title, description, and imageUrl are read from the json map.

Implementation

factory SocialMeta.fromJson(Map<String, dynamic> json) => SocialMeta(
      title: json['title'],
      description: json['description'],
      imageUrl: json['imageUrl'],
    );