toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
  if (this.customWebhookUrl != null) {
    json[r'custom_webhook_url'] = this.customWebhookUrl;
  } else {
    json[r'custom_webhook_url'] = null;
  }
  if (this.pinFailedAttemptPrompt != null) {
    json[r'pin_failed_attempt_prompt'] = this.pinFailedAttemptPrompt;
  } else {
    json[r'pin_failed_attempt_prompt'] = null;
  }
  if (this.pinHangupPrompt != null) {
    json[r'pin_hangup_prompt'] = this.pinHangupPrompt;
  } else {
    json[r'pin_hangup_prompt'] = null;
  }
  if (this.pinPrompt != null) {
    json[r'pin_prompt'] = this.pinPrompt;
  } else {
    json[r'pin_prompt'] = null;
  }
  if (this.pinSuccessPrompt != null) {
    json[r'pin_success_prompt'] = this.pinSuccessPrompt;
  } else {
    json[r'pin_success_prompt'] = null;
  }
  return json;
}