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