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