exportModelToJson function

String exportModelToJson(
  1. ExportModel data
)

Converts an ExportModel object into a JSON string.

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

data: The ExportModel object to be converted.

Returns a JSON string representation of the ExportModel.

Implementation

String exportModelToJson(ExportModel data) => json.encode(data.toJson());