CsvClassifier.fromJson constructor

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

Implementation

factory CsvClassifier.fromJson(Map<String, dynamic> json) {
  return CsvClassifier(
    name: json['Name'] as String,
    allowSingleColumn: json['AllowSingleColumn'] as bool?,
    containsHeader: (json['ContainsHeader'] as String?)?.toCsvHeaderOption(),
    creationTime: timeStampFromJson(json['CreationTime']),
    delimiter: json['Delimiter'] as String?,
    disableValueTrimming: json['DisableValueTrimming'] as bool?,
    header: (json['Header'] as List?)
        ?.whereNotNull()
        .map((e) => e as String)
        .toList(),
    lastUpdated: timeStampFromJson(json['LastUpdated']),
    quoteSymbol: json['QuoteSymbol'] as String?,
    version: json['Version'] as int?,
  );
}