fromJson static method
Inherited by: NotificationTypeNewCall NotificationTypeNewMessage NotificationTypeNewPushMessage NotificationTypeNewSecretChat
Implementation
static NotificationTypeNewMessage? fromJson(Map<String, dynamic>? json) {
if (json == null) {
return null;
}
return NotificationTypeNewMessage(
message: Message.fromJson(tdMapFromJson(json['message'])),
showPreview: (json['show_preview'] as bool?) ?? false,
);
}