CallLogData.fromJson constructor
CallLogData.fromJson(
- Map<String, dynamic> json
)
Implementation
factory CallLogData.fromJson(Map<String, dynamic> json) => CallLogData(
callMode: json["callMode"],
callState: Platform.isAndroid ? json['callState'] : getCallState(stateValue: 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']
);