ModelDetail class

Constructors

ModelDetail({String? id, String? author, String? name, String? primaryMethod, String? secondaryMethods, String? confidence, String? classificationEvidence, String? classifierVersion, String? classifiedAt, String? family, num? paramsB, int? isGguf, int? isMoe, int? isMultimodal, int? isImageGen, int? isSecondOrder, int? downloads, int? likes, String? createdAt, String? lastModified, String? firstSeenAt, String? lastSeenAt, int? isDelisted, int? daysSinceGone, String? readmeText, String? readmeStatus, String? tags, String? pipelineTag, String? libraryName, String? yamlBaseModel, String? yamlLanguage, String? yamlDatasets, String? yamlLicense, String? yamlTags, int? filesCount, int? totalSizeBytes, int? largestFileBytes, int? smallestModelBytes, String? quantizations, int? hasMmproj, int? hubDownloadsAllTime, int? hubTrendingScore, num? hubRealParamsM, int? hubContextLength, int? hubSiblingsCount, int? hubProviderCount, String? hubProviderNames, String? hubEnrichedAt, List<Object> files = const [], Object? benchmarks, Author? authorSummary})
Returns a new ModelDetail instance.

Properties

author ↔ String?
Please note: This property should have been non-nullable! Since the specification file does not include a default value (using the "default:" property), however, the generated source code must fall back to having a nullable type. Consider adding a "default:" property in the specification file to hide this note.
getter/setter pair
authorSummary ↔ Author?
getter/setter pair
benchmarks ↔ Object?
Two arrays under own and base — each item has benchmark_name, score, source, pertains_to.
getter/setter pair
classificationEvidence ↔ String?
JSON-encoded array of evidence strings.
getter/setter pair
classifiedAt ↔ String?
getter/setter pair
classifierVersion ↔ String?
getter/setter pair
confidence ↔ String?
getter/setter pair
createdAt ↔ String?
getter/setter pair
daysSinceGone ↔ int?
Whole days between last_seen_at and now. null unless is_delisted=1.
getter/setter pair
downloads ↔ int?
getter/setter pair
family ↔ String?
getter/setter pair
files ↔ List<Object>
Per-file manifest: filename, size_bytes, sha256, quantization, is_model_file, is_mmproj.
getter/setter pair
filesCount ↔ int?
getter/setter pair
firstSeenAt ↔ String?
getter/setter pair
hashCode → int
The hash code for this object.
no setteroverride
hasMmproj ↔ int?
getter/setter pair
hubContextLength ↔ int?
getter/setter pair
hubDownloadsAllTime ↔ int?
getter/setter pair
hubEnrichedAt ↔ String?
getter/setter pair
hubProviderCount ↔ int?
getter/setter pair
hubProviderNames ↔ String?
getter/setter pair
hubRealParamsM ↔ num?
getter/setter pair
hubSiblingsCount ↔ int?
getter/setter pair
hubTrendingScore ↔ int?
getter/setter pair
id ↔ String?
Please note: This property should have been non-nullable! Since the specification file does not include a default value (using the "default:" property), however, the generated source code must fall back to having a nullable type. Consider adding a "default:" property in the specification file to hide this note.
getter/setter pair
isDelisted ↔ int?
0/1 flag. 1 means HF no longer serves this model — the response is the last state we recorded.
getter/setter pair
isGguf ↔ int?
getter/setter pair
isImageGen ↔ int?
getter/setter pair
isMoe ↔ int?
getter/setter pair
isMultimodal ↔ int?
getter/setter pair
isSecondOrder ↔ int?
getter/setter pair
largestFileBytes ↔ int?
getter/setter pair
lastModified ↔ String?
getter/setter pair
lastSeenAt ↔ String?
getter/setter pair
libraryName ↔ String?
getter/setter pair
likes ↔ int?
getter/setter pair
name ↔ String?
Please note: This property should have been non-nullable! Since the specification file does not include a default value (using the "default:" property), however, the generated source code must fall back to having a nullable type. Consider adding a "default:" property in the specification file to hide this note.
getter/setter pair
paramsB ↔ num?
getter/setter pair
pipelineTag ↔ String?
getter/setter pair
primaryMethod ↔ String?
getter/setter pair
quantizations ↔ String?
JSON-encoded array of quantisation labels.
getter/setter pair
readmeStatus ↔ String?
getter/setter pair
readmeText ↔ String?
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
secondaryMethods ↔ String?
JSON-encoded array of extra method codes.
getter/setter pair
smallestModelBytes ↔ int?
getter/setter pair
tags ↔ String?
JSON-encoded array of Hub tags.
getter/setter pair
totalSizeBytes ↔ int?
getter/setter pair
yamlBaseModel ↔ String?
getter/setter pair
yamlDatasets ↔ String?
getter/setter pair
yamlLanguage ↔ String?
getter/setter pair
yamlLicense ↔ String?
getter/setter pair
yamlTags ↔ String?
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
toString() → String
A string representation of this object.
override

Operators

operator ==(Object other) → bool
The equality operator.
override

Static Methods

fromJson(dynamic value) → ModelDetail?
Returns a new ModelDetail instance and imports its values from value if it's a Map, null otherwise.
listFromJson(dynamic json, {bool growable = false}) → List<ModelDetail>
mapFromJson(dynamic json) → Map<String, ModelDetail>
mapListFromJson(dynamic json, {bool growable = false}) → Map<String, List<ModelDetail>>

Constants

requiredKeys → const Set<String>
The list of required keys that must be present in a JSON.