profileDataFromJson function
Converts a JSON string into a ProfileModel object.
This function decodes the provided JSON string into a map, and then uses the ProfileModel.fromJson factory constructor to create a ProfileModel object.
str
: The JSON string to be decoded.
Returns a ProfileModel object.
Implementation
ProfileModel profileDataFromJson(String str) =>
ProfileModel.fromJson(json.decode(str));