toJson method

Map<String, dynamic> toJson()

Converts a ContactChatMessage instance into a JSON object.

Implementation

Map<String, dynamic> toJson() => {
      "contactName": contactName,
      "contactPhoneNumbers":
          List<dynamic>.from(contactPhoneNumbers.map((x) => x)),
      "isChatAppUser": List<dynamic>.from(isChatAppUser.map((x) => x)),
      "messageId": messageId,
    };