profileDetailFromJson function
Converts a JSON string into a single ProfileDetails object.
This function decodes the provided JSON string into a map and then uses the ProfileDetails.fromJson factory to create a ProfileDetails object.
Parameters:
str
- A JSON string representing a single profile detail.
Returns: A ProfileDetails object.
Implementation
ProfileDetails profileDetailFromJson(String str) =>
ProfileDetails.fromJson(json.decode(str));