Workspace.fromJson constructor

Workspace.fromJson(
  1. Map _json
)

Implementation

Workspace.fromJson(core.Map _json)
    : this(
        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,
        tables: _json.containsKey('tables')
            ? (_json['tables'] as core.List)
                .map<Table>((value) => Table.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        updateTime: _json.containsKey('updateTime')
            ? _json['updateTime'] as core.String
            : null,
      );