profileDataToJson function

String profileDataToJson(
  1. ProfileModel data
)

Converts a ProfileModel object into a JSON string.

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

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

Returns: A JSON string representation of the ProfileModel object.

Implementation

String profileDataToJson(ProfileModel data) => json.encode(data.toJson());