CallLogData.fromJson constructor

CallLogData.fromJson(
  1. Map<String, dynamic> json
)

Converts a JSON object into a CallLogData instance.

Implementation

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