EsMessage.fromJson constructor

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

Implementation

EsMessage.fromJson(Map<String, dynamic> json) {
  id = json['id'];
  title = json['title'];
  message = json['message'];
  message ??= json["description"];
  icon = json['icon'];
  url = json['url'];
  createdAt = json['createdAt'];
  createdAt ??= json["created_at"];
  seenAt = json['seenAt'];
  clickedAt = json['clickedAt'];
  data = json["data"];
}