OpenGraphModel.fromJson constructor

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

Implementation

OpenGraphModel.fromJson(Map<String, dynamic> json)
    : resultCd = json['result_cd'],
      resultMsg = json['result_msg'],
      title = json['data']?['title'] ?? "",
      description = json['data']?['description'] ?? "",
      image = json['data']?['image'] ?? "",
      url = json['data']?['url'] ?? "",
      host = json['data']?['host'] ?? "",
      ogUrl = json['data']?['ogUrl'] ?? "";