GraphInfo.fromMap constructor

GraphInfo.fromMap(
  1. Map<String, dynamic> json
)

Implementation

factory GraphInfo.fromMap(Map<String, dynamic> json) => GraphInfo(
  title: json["title"] ?? "",
  imageUrl: json["imageUrl"] ?? "",
  description: json["description"] ?? "",
  descriptionSource: json["descriptionSource"] ?? "",
  descriptionLink: json["descriptionLink"] ?? "",
  attributes:
      (json["attributes"] as Map<String, dynamic>?)?.entries
          .map((e) => {e.key: e.value.toString()})
          .toList() ??
      [],
);