fromJson static method

ModelEntry fromJson(
  1. Object? json, {
  2. String path = 'model',
  3. bool requireSha256 = true,
})

Parses one entry of a published manifest: every field is set, format is gguf, and file.url is an https URL ending in a .gguf file name. requireSha256 false also accepts an entry without file.sha256.

Implementation

static ModelEntry fromJson(Object? json, {String path = 'model', bool requireSha256 = true}) =>
    _parse(json, path, strict: true, requireSha256: requireSha256);