callLogListToJson function

String callLogListToJson(
  1. CallLogModel data
)

Converts a CallLogModel object into a JSON string.

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

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

Returns: A JSON string representation of the CallLogModel object.

Implementation

String callLogListToJson(CallLogModel data) => json.encode(data.toJson());