NotificationTypeNewPushMessage.fromJson constructor

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

Parse from a json

Implementation

factory NotificationTypeNewPushMessage.fromJson(Map<String, dynamic> json) =>
    NotificationTypeNewPushMessage(
      messageId: json['message_id'],
      senderId: MessageSender.fromJson(json['sender_id']),
      senderName: json['sender_name'],
      isOutgoing: json['is_outgoing'],
      content: PushMessageContent.fromJson(json['content']),
    );