NotificationButton.fromJson constructor
Implementation
factory NotificationButton.fromJson(Map<String, dynamic> json) {
return NotificationButton(
text: json['text'] ?? '',
action: json['action'] ?? '',
backgroundColor: json['background_color'] != null
? Color(int.parse(json['background_color'], radix: 16))
: null,
textColor: json['text_color'] != null
? Color(int.parse(json['text_color'], radix: 16))
: null,
);
}