APNSPushNotificationTemplate.fromJson constructor

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

Implementation

factory APNSPushNotificationTemplate.fromJson(Map<String, dynamic> json) {
  return APNSPushNotificationTemplate(
    action: (json['Action'] as String?)?.toAction(),
    body: json['Body'] as String?,
    mediaUrl: json['MediaUrl'] as String?,
    rawContent: json['RawContent'] as String?,
    sound: json['Sound'] as String?,
    title: json['Title'] as String?,
    url: json['Url'] as String?,
  );
}