MessagePosition.fromJson constructor

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

Parse from a json

Implementation

factory MessagePosition.fromJson(Map<String, dynamic> json) =>
    MessagePosition(
      position: json['position'],
      messageId: json['message_id'],
      date: json['date'],
    );