AndroidPushNotificationTemplate.fromJson constructor

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

Implementation

factory AndroidPushNotificationTemplate.fromJson(Map<String, dynamic> json) {
  return AndroidPushNotificationTemplate(
    action: (json['Action'] as String?)?.toAction(),
    body: json['Body'] as String?,
    imageIconUrl: json['ImageIconUrl'] as String?,
    imageUrl: json['ImageUrl'] as String?,
    rawContent: json['RawContent'] as String?,
    smallImageIconUrl: json['SmallImageIconUrl'] as String?,
    sound: json['Sound'] as String?,
    title: json['Title'] as String?,
    url: json['Url'] as String?,
  );
}