TaxonIn class

Constructors

TaxonIn({List<String> brands = const [], String? category, String? description, String? href, String? icon, String? id, String? name, int? order, bool? published, String? route, List<String> tags = const []})
Returns a new TaxonIn instance.

Properties

brands ↔ List<String>
Brands are the brands whose console shows it. Omit for every brand its category admits.
getter/setter pair
category ↔ String?
Category is the id of an EXISTING category to file it under. Required.
getter/setter pair
description ↔ String?
Description is the one line shown beneath the name.
getter/setter pair
hashCode → int
The hash code for this object.
no setteroverride
href ↔ String?
Href is the absolute URL an external product launches. Give this or route, never both.
getter/setter pair
icon ↔ String?
Icon names the icon the surface renders, e.g. "Database".
getter/setter pair
id ↔ String?
ID is the taxon slug to write, from the path.
getter/setter pair
name ↔ String?
Name is the display name. Required.
getter/setter pair
order ↔ int?
Order is where it sits within its category, ascending.
getter/setter pair
published ↔ bool?
Published is whether it is shown. Omitted means published — a taxon someone took the trouble to write is meant to be seen, and hiding one is the deliberate act.
getter/setter pair
route ↔ String?
Route is the in-console path it opens, e.g. "/vector". Give this or href, never both.
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
tags ↔ List<String>
Tags are free-form labels for search and grouping across categories.
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) → TaxonIn?
Returns a new TaxonIn instance and imports its values from value if it's a Map, null otherwise.
listFromJson(dynamic json, {bool growable = false}) → List<TaxonIn>
mapFromJson(dynamic json) → Map<String, TaxonIn>
mapListFromJson(dynamic json, {bool growable = false}) → Map<String, List<TaxonIn>>

Constants

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