profileUpdateFromJson function
Converts a JSON string into a ProfileUpdate object.
This function decodes the given JSON string and uses the fromJson
constructor
of the ProfileUpdate class to create an instance.
Parameters:
str
- A JSON string representation of a ProfileUpdate object.
Returns: An instance of ProfileUpdate populated with data from the given JSON string.
Implementation
ProfileUpdate profileUpdateFromJson(String str) =>
ProfileUpdate.fromJson(json.decode(str));