CurateReq class

Constructors

CurateReq({bool? featured, bool? hidden, String? id, bool? official})
Returns a new CurateReq instance.

Properties

Featured puts the listing on the front of the shelf, or takes it off.
getter/setter pair
hashCode → int
The hash code for this object.
no setteroverride
hidden ↔ bool?
Hidden takes the listing off the org-visible shelf, or puts it back.
getter/setter pair
id ↔ String?
ID is the listing to curate, from the path.
getter/setter pair
Logo is the brand mark to render, an https URL. Empty clears ours and lets the next sync adopt the publisher's own icon again.
getter/setter pair
official ↔ bool?
Official overrides the derivation: setting it makes this answer FINAL, so no later sync re-derives over it. That is the difference between a default and a decision — the derivation can only tell that a domain-verified publisher serves the endpoint, not that the product is theirs.
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

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

Constants

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