profileUpdateFromJson function

ProfileUpdate profileUpdateFromJson(
  1. String str
)

Converts a JSON string into a ProfileUpdate object.

This function decodes the provided JSON string into a map and then uses the ProfileUpdate.fromJson constructor to create a ProfileUpdate object.

Parameters: str - A JSON string representing a profile update.

Returns: A ProfileUpdate object.

Implementation

ProfileUpdate profileUpdateFromJson(String str) =>
    ProfileUpdate.fromJson(json.decode(str));