DefaultPushNotificationTemplate.fromJson constructor

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

Implementation

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