DialogParams.fromJson constructor

DialogParams.fromJson(
  1. Map<String, dynamic> json
)

Implementation

DialogParams.fromJson(Map<String, dynamic> json) {
  attach = json['attach'];
  audio = json['audio'];
  callID = json['callID'];
  callerIdName = json['caller_id_name'];
  callerIdNumber = json['caller_id_number'];
  clientState = json['clientState'];
  destinationNumber = json['destination_number'];
  remoteCallerIdName = json['remote_caller_id_name'];
  screenShare = json['screenShare'];
  useStereo = json['useStereo'];
  if (json['userVariables'] != null) {
    userVariables = <Null>[];
    json['userVariables'].forEach((v) {
      userVariables!.add((v));
    });
  }
  if (json['custom_headers'] != null) {
    customHeaders = <String, String>{};
    json['custom_headers'].forEach((v) {
      customHeaders![v['name']] = v['value'];
    });
  }
  video = json['video'];
}