profileUpdateToJson function

String profileUpdateToJson(
  1. ProfileUpdate data
)

Converts a ProfileUpdate object into a JSON string.

This function takes a ProfileUpdate object, converts it to a map using the toJson method, and then encodes the map as a JSON string.

Parameters: data - A ProfileUpdate object.

Returns: A JSON string representing the profile update.

Implementation

String profileUpdateToJson(ProfileUpdate data) => json.encode(data.toJson());