getCustomMap method

dynamic getCustomMap({
  1. bool isGroup = false,
})

Implementation

getCustomMap({bool isGroup = false}) {
  Map<String, dynamic> customMap = <String, dynamic>{};
  Map<String, dynamic> data = <String, dynamic>{};
  data['cmd'] = mCurCallType;
  data['room_id'] = mCurRoomID;
  data["message"] = "";
  data["cmd_info"] = "";
  customMap['version'] = 1;
  customMap['call_type'] = mCurCallType == TRTCCalling.typeAudioCall ? 1 : 2;
  customMap['data'] = data;
  customMap['room_id'] = mCurRoomID;
  customMap['is_group'] = isGroup;
  return customMap;
}