factory RegistrationSuccess.fromJSON(Map<String, dynamic> data) { return RegistrationSuccess( (data["groupId"] as String), (data["userId"] as String), (data["token"] as String) ); }