callLogListToJson function
Converts a CallLogModel to a JSON string.
This function takes a CallLogModel object, converts it to a Map
using the toJson
method, and then encodes this Map as a JSON string.
data
: The CallLogModel object to be converted.
Returns a JSON string representation of the CallLogModel.
Implementation
String callLogListToJson(CallLogModel data) => json.encode(data.toJson());