fromJson static method
- dynamic json
Implementation
static PushPayload fromJson(dynamic json) {
var notificationId = json["notificationId"];
var alert = json["alert"];
var title = json["title"];
var subtitle = json["subtitle"];
Map<String, dynamic> extras;
if (json["extras"] != null) {
extras = Map<String, dynamic>.from(json["extras"]);
} else {
extras = {};
}
return PushPayload._internal(
notificationId, alert, title, subtitle, extras);
}