ListWorkspacesResponse.fromJson constructor

ListWorkspacesResponse.fromJson(
  1. Map _json
)

Implementation

ListWorkspacesResponse.fromJson(core.Map _json)
    : this(
        nextPageToken: _json.containsKey('nextPageToken')
            ? _json['nextPageToken'] as core.String
            : null,
        workspaces: _json.containsKey('workspaces')
            ? (_json['workspaces'] as core.List)
                .map<Workspace>((value) => Workspace.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
      );