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,
        nextPageToken: json_.containsKey('nextPageToken')
            ? json_['nextPageToken'] as core.String
            : null,
      );