Table.fromJson constructor

Table.fromJson(
  1. Map json_
)

Implementation

Table.fromJson(core.Map json_)
    : this(
        columnHeaders: json_.containsKey('columnHeaders')
            ? Headers.fromJson(
                json_['columnHeaders'] as core.Map<core.String, core.dynamic>)
            : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        rowHeaders: json_.containsKey('rowHeaders')
            ? Headers.fromJson(
                json_['rowHeaders'] as core.Map<core.String, core.dynamic>)
            : null,
        rows: json_.containsKey('rows')
            ? (json_['rows'] as core.List)
                .map((value) => Row.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
      );