Table.fromJson constructor

Table.fromJson(
  1. Map _json
)

Implementation

Table.fromJson(core.Map _json)
    : this(
        columns: _json.containsKey('columns')
            ? (_json['columns'] as core.List)
                .map((value) => ColumnDescription.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        createTime: _json.containsKey('createTime')
            ? _json['createTime'] as core.String
            : null,
        displayName: _json.containsKey('displayName')
            ? _json['displayName'] as core.String
            : null,
        name: _json.containsKey('name') ? _json['name'] as core.String : null,
        savedViews: _json.containsKey('savedViews')
            ? (_json['savedViews'] as core.List)
                .map((value) => SavedView.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        timeZone: _json.containsKey('timeZone')
            ? _json['timeZone'] as core.String
            : null,
        updateTime: _json.containsKey('updateTime')
            ? _json['updateTime'] as core.String
            : null,
      );