profileData function

ProfileData profileData(
  1. String str
)

Converts a JSON string into a ProfileData object.

This function decodes the given JSON string and uses the fromJson constructor of the ProfileData class to create an instance.

Parameters: str - A JSON string representation of a ProfileData object.

Returns: An instance of ProfileData populated with data from the given JSON string.

Implementation

ProfileData profileData(String str) => ProfileData.fromJson(json.decode(str));