getCallMessage static method

CallingMessage? getCallMessage(
  1. V2TimCustomElem? customElem
)

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;
  }
}