factory Credential({ required String id, required String password, }) => Credential._toJS( id: id.toJS, password: password.toJS, );