Csv.fromJson constructor

Csv.fromJson(
  1. Map _json
)

Implementation

Csv.fromJson(core.Map _json)
    : this(
        dataRows: _json.containsKey('dataRows')
            ? (_json['dataRows'] as core.List)
                .map<CsvRow>((value) => CsvRow.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        headers: _json.containsKey('headers')
            ? (_json['headers'] as core.List)
                .map<core.String>((value) => value as core.String)
                .toList()
            : null,
      );