toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final channelName = this.channelName;
  final dataSource = this.dataSource;
  final compressionType = this.compressionType;
  final contentType = this.contentType;
  final inputMode = this.inputMode;
  final recordWrapperType = this.recordWrapperType;
  final shuffleConfig = this.shuffleConfig;
  return {
    'ChannelName': channelName,
    'DataSource': dataSource,
    if (compressionType != null) 'CompressionType': compressionType.toValue(),
    if (contentType != null) 'ContentType': contentType,
    if (inputMode != null) 'InputMode': inputMode.toValue(),
    if (recordWrapperType != null)
      'RecordWrapperType': recordWrapperType.toValue(),
    if (shuffleConfig != null) 'ShuffleConfig': shuffleConfig,
  };
}