toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final broker = this.broker;
  final includeControlDetails = this.includeControlDetails;
  final includeNullAndEmpty = this.includeNullAndEmpty;
  final includePartitionValue = this.includePartitionValue;
  final includeTableAlterOperations = this.includeTableAlterOperations;
  final includeTransactionDetails = this.includeTransactionDetails;
  final messageFormat = this.messageFormat;
  final messageMaxBytes = this.messageMaxBytes;
  final partitionIncludeSchemaTable = this.partitionIncludeSchemaTable;
  final topic = this.topic;
  return {
    if (broker != null) 'Broker': broker,
    if (includeControlDetails != null)
      'IncludeControlDetails': includeControlDetails,
    if (includeNullAndEmpty != null)
      'IncludeNullAndEmpty': includeNullAndEmpty,
    if (includePartitionValue != null)
      'IncludePartitionValue': includePartitionValue,
    if (includeTableAlterOperations != null)
      'IncludeTableAlterOperations': includeTableAlterOperations,
    if (includeTransactionDetails != null)
      'IncludeTransactionDetails': includeTransactionDetails,
    if (messageFormat != null) 'MessageFormat': messageFormat.toValue(),
    if (messageMaxBytes != null) 'MessageMaxBytes': messageMaxBytes,
    if (partitionIncludeSchemaTable != null)
      'PartitionIncludeSchemaTable': partitionIncludeSchemaTable,
    if (topic != null) 'Topic': topic,
  };
}