ListModelsResponse.fromJson constructor

ListModelsResponse.fromJson(
  1. Map json_
)

Implementation

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