ListWorkloadsResponse.fromJson constructor

ListWorkloadsResponse.fromJson(
  1. Map json_
)

Implementation

ListWorkloadsResponse.fromJson(core.Map json_)
    : this(
        nextPageToken: json_.containsKey('nextPageToken')
            ? json_['nextPageToken'] as core.String
            : null,
        workloads: json_.containsKey('workloads')
            ? (json_['workloads'] as core.List)
                .map((value) => ComposerWorkload.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
      );