AutoMLChannel.fromJson constructor

AutoMLChannel.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory AutoMLChannel.fromJson(Map<String, dynamic> json) {
  return AutoMLChannel(
    dataSource:
        AutoMLDataSource.fromJson(json['DataSource'] as Map<String, dynamic>),
    targetAttributeName: json['TargetAttributeName'] as String,
    compressionType:
        (json['CompressionType'] as String?)?.toCompressionType(),
  );
}