TableDataList.fromJson constructor

TableDataList.fromJson(
  1. Map json_
)

Implementation

TableDataList.fromJson(core.Map json_)
    : this(
        etag: json_.containsKey('etag') ? json_['etag'] as core.String : null,
        kind: json_.containsKey('kind') ? json_['kind'] as core.String : null,
        pageToken: json_.containsKey('pageToken')
            ? json_['pageToken'] as core.String
            : null,
        rows: json_.containsKey('rows')
            ? (json_['rows'] as core.List)
                .map((value) => TableRow.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        totalRows: json_.containsKey('totalRows')
            ? json_['totalRows'] as core.String
            : null,
      );