toJson method

Map<String, dynamic> toJson()

Converts a CallLogData instance into a JSON object.

Implementation

Map<String, dynamic> toJson() => {
      "callMode": callMode,
      "callState": callState,
      "callTime": callTime,
      "callType": callType,
      "callerDevice": callerDevice,
      "endTime": endTime,
      "fromUser": fromUser,
      "groupId": groupId,
      "inviteUserList": inviteUserList == null
          ? []
          : List<String>.from(inviteUserList!.map((x) => x)),
      "isCarbonAnswered": isCarbonAnswered,
      "isDeleted": isDeleted,
      "isDisplay": isDisplay,
      "isSync": isSync,
      "roomId": roomId,
      "rowId": rowId,
      "sessionStatus": sessionStatus,
      "startTime": startTime,
      "toUser": toUser,
      "userList":
          userList == null ? [] : List<dynamic>.from(userList!.map((x) => x)),
      "nickName": nickName
    };