toJson method

  1. @override
Map<String, dynamic> toJson()
override

Implementation

@override
Map<String, dynamic> toJson() {
  var json = super.toJson();
  if (tenantId != null) {
    json['tenantId'] = tenantId!.toJson();
  }
  json['name'] = name;
  json['topic'] = topic;
  if (pollInterval != null) {
    json['pollInterval'] = pollInterval;
  }
  if (partitions != null) {
    json['partitions'] = partitions;
  }
  if (consumerPerPartition != null) {
    json['consumerPerPartition'] = consumerPerPartition;
  }
  if (packProcessingTimeout != null) {
    json['packProcessingTimeout'] = packProcessingTimeout;
  }
  json['submitStrategy'] = submitStrategy.toJson();
  json['processingStrategy'] = processingStrategy.toJson();
  return json;
}