FcmNotification.fromJson constructor
FcmNotification.fromJson(
- Map<String, dynamic> json
)
Implementation
factory FcmNotification.fromJson(Map<String, dynamic> json) {
return FcmNotification(
title: json['title']?.toString(),
body: json['body']?.toString(),
image: json['image']?.toString(),
// titleLocKey: json['title_loc_key']?.toString(),
// titleLocArgs: (json['title_loc_args'] as List<dynamic>?)?.map((e) => e.toString()).toList(),
// bodyLocKey: json['body_loc_key']?.toString(),
// bodyLocArgs: (json['body_loc_args'] as List<dynamic>?)?.map((e) => e.toString()).toList(),
);
}