exportModelToJson function
Converts an ExportModel object into a JSON string.
This function takes an ExportModel object, converts it into a map
using the toJson
method, and then encodes this map as a JSON string.
Parameters:
data
- The ExportModel object to be converted into a JSON string.
Returns: A JSON string representation of the ExportModel object.
Implementation
String exportModelToJson(ExportModel data) => json.encode(data.toJson());