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