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,
      );