class UsersMention { int id; String name; String? type; String? photo; UsersMention({required this.id, required this.name, this.type, this.photo}); factory UsersMention.fromJson(Map json) => UsersMention( id: json['id'], name: json['name'], type: json['type'], photo: json['photo']); Map toJson() { final Map data = {}; data['id'] = id; data['name'] = name; data['type'] = type; data['photo'] = photo; return data; } }