fromJson static method

InboxMessage fromJson(
  1. dynamic json
)

Implementation

static InboxMessage fromJson(dynamic json) {
  var title = json["title"];
  var messageId = json["id"];
  var sentDate = json["sentDate"];
  var expirationDate = json["expirationDate"];
  var listIcon = json["listIconUrl"];
  var isRead = json["isRead"];
  var extras = Map<String, Object?>.from(json["extras"]);
  return InboxMessage._internal(
      title, messageId, sentDate, expirationDate, listIcon, isRead, extras);
}