profileUpdateToJson function

String profileUpdateToJson(
  1. ProfileUpdate data
)

Converts a ProfileUpdate object into a JSON string.

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

Parameters: data - The ProfileUpdate object to be converted into a JSON string.

Returns: A JSON string representation of the ProfileUpdate object.

Implementation

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