Additional User model properties
Opened this issue · 2 comments
Is it possible to configure the User model properties to return other data from the x api? Or possibly set a custom User object at runtime?
For instance
You are current providing isVerified
this.isVerified = user.is_blue_verified;
But, I would like to get the verified_type as well
this.isVerified = user.is_blue_verified;
this.verifiedType = user.legacy.verified_type;
It's not possible to configure the User model by the consumer of the API, and any additional fields must be included by changing the User model at the source level.
However, you can get access to the raw response data using the FetcherService
class. From the raw response, you can pick up whatever fields you like.
I can keep this issue open on my end and add the requested properties to the User model in the meantime.
Great, I will take a look. Thx