getCallMessage static method
Implementation
static CallingMessage? getCallMessage(V2TimCustomElem? customElem) {
try {
if (customElem?.data != null) {
final customMessage = jsonDecode(customElem!.data!);
return CallingMessage.fromJSON(customMessage);
}
return null;
} catch (err) {
print(err);
return null;
}
}