profileDataFromJson function

ProfileModel profileDataFromJson(
  1. String str
)

Converts a JSON string into a ProfileModel object.

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

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

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

Implementation

ProfileModel profileDataFromJson(String str) =>
    ProfileModel.fromJson(json.decode(str));