ListEnvironmentsResponse.fromJson constructor

ListEnvironmentsResponse.fromJson(
  1. Map _json
)

Implementation

ListEnvironmentsResponse.fromJson(core.Map _json)
    : this(
        environments: _json.containsKey('environments')
            ? (_json['environments'] as core.List)
                .map((value) => Environment.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        executionId: _json.containsKey('executionId')
            ? _json['executionId'] as core.String
            : null,
        historyId: _json.containsKey('historyId')
            ? _json['historyId'] as core.String
            : null,
        nextPageToken: _json.containsKey('nextPageToken')
            ? _json['nextPageToken'] as core.String
            : null,
        projectId: _json.containsKey('projectId')
            ? _json['projectId'] as core.String
            : null,
      );