toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final callInstructionsMessage = this.callInstructionsMessage;
  final plainTextMessage = this.plainTextMessage;
  final sSMLMessage = this.sSMLMessage;
  return {
    if (callInstructionsMessage != null)
      'CallInstructionsMessage': callInstructionsMessage,
    if (plainTextMessage != null) 'PlainTextMessage': plainTextMessage,
    if (sSMLMessage != null) 'SSMLMessage': sSMLMessage,
  };
}