factory AdminMessage.fromJsonWithChat(Chat chat, Map<String, dynamic> json) { return AdminMessage.fromJson(json)..set(chat); }