toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final Map<String, dynamic> data = <String, dynamic>{};
  data['callID'] = callID;
  if (variables != null) {
    data['variables'] = variables!.toJson();
  }
  data['sdp'] = sdp;
  data['caller_id_name'] = callerIdName;
  data['caller_id_number'] = callerIdNumber;
  data['callee_id_name'] = calleeIdName;
  data['callee_id_number'] = calleeIdNumber;
  data['telnyx_session_id'] = telnyxSessionId;
  data['telnyx_leg_id'] = telnyxLegId;
  data['display_direction'] = displayDirection;
  return data;
}