PushMessageContent.fromJson constructor

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

Implementation

PushMessageContent.fromJson(Map<String, dynamic>? json) {
  if (json == null) return;
  recipient = json['recipient'] as String?;
  userId = json['userId'] as String?;
  nativePush = json['nativePush'] as bool?;
  body = json[body as String] as Map<String, dynamic>?;
  notification = Notification.fromJson(json['notification'] as Map<String, dynamic>?);
  envelopeType = json['envelopeType'] as String?;
}