ImportContextCsvImportOptions.fromJson constructor

ImportContextCsvImportOptions.fromJson(
  1. Map _json
)

Implementation

ImportContextCsvImportOptions.fromJson(core.Map _json)
    : this(
        columns: _json.containsKey('columns')
            ? (_json['columns'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        escapeCharacter: _json.containsKey('escapeCharacter')
            ? _json['escapeCharacter'] as core.String
            : null,
        fieldsTerminatedBy: _json.containsKey('fieldsTerminatedBy')
            ? _json['fieldsTerminatedBy'] as core.String
            : null,
        linesTerminatedBy: _json.containsKey('linesTerminatedBy')
            ? _json['linesTerminatedBy'] as core.String
            : null,
        quoteCharacter: _json.containsKey('quoteCharacter')
            ? _json['quoteCharacter'] as core.String
            : null,
        table:
            _json.containsKey('table') ? _json['table'] as core.String : null,
      );