Dataset class
Constructors
-
Dataset({String? id, String? author, String? slug, String? category, String? license, String? language, int? downloads, int? downloadsAll, int? likes, int? trendingScore, int? gated, int? mainSizeBytes, String? sizeDisplay, int? ageDays, int? isTrending, int? justAdded, String? description, List<
String> tags = const [], String? hfUrl, String? createdAt, String? lastModifiedAt, String? firstSeenAt}) - Returns a new Dataset instance.
Properties
- ageDays ↔ int?
-
getter/setter pair
-
getter/setter pair
- category ↔ String?
-
getter/setter pair
- createdAt ↔ String?
-
getter/setter pair
- description ↔ String?
-
getter/setter pair
- downloads ↔ int?
-
Recent-window downloads reported by the Hub.
getter/setter pair
- downloadsAll ↔ int?
-
All-time downloads reported by the Hub.
getter/setter pair
- firstSeenAt ↔ String?
-
getter/setter pair
- gated ↔ int?
-
Server returns 0/1 (SQLite bool convention), not a JSON boolean.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setteroverride
- hfUrl ↔ String?
-
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
- isTrending ↔ int?
-
Server returns 0/1, not a JSON boolean.
getter/setter pair
- justAdded ↔ int?
-
Server returns 0/1, not a JSON boolean.
getter/setter pair
- language ↔ String?
-
getter/setter pair
- lastModifiedAt ↔ String?
-
getter/setter pair
- license ↔ String?
-
getter/setter pair
- likes ↔ int?
-
getter/setter pair
- mainSizeBytes ↔ int?
-
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sizeDisplay ↔ String?
-
Human-formatted size (e.g. "90.4 MB").
getter/setter pair
- slug ↔ String?
-
getter/setter pair
-
getter/setter pair
- trendingScore ↔ int?
-
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) → Dataset? -
Returns a new Dataset instance and imports its values from
valueif it's a Map, null otherwise. -
listFromJson(
dynamic json, {bool growable = false}) → List< Dataset> -
mapFromJson(
dynamic json) → Map< String, Dataset> -
mapListFromJson(
dynamic json, {bool growable = false}) → Map< String, List< Dataset> >
Constants
-
requiredKeys
→ const Set<
String> - The list of required keys that must be present in a JSON.