You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In convertRequest function, I need convert body to String. The body here could be an Object or a Map or other data types. So, I can only get the Type of body through runtimeType to convert to the correct data type.
Do you have any solution or any idea for my problem?
I have a problem checking the runtimeType of an object to send through HTTP.
I create a list of objects with map (The objects were generated by freezed).
When I check the runtimeType of the object then the result is like this _$EmailImpl, _$PasswordImpl and _$SettingsImpl.
Then I want to get the above object through the key and get an error.
So is there any way I can get the base object "Email" instead of "_$EmailImpl".
The text was updated successfully, but these errors were encountered: