Offer class

Constructors

Offer({bool? available, String? currency, String? domain, bool? premium, int? priceCents, int? renewalPriceCents, String? tld})
Returns a new Offer instance.

Properties

available ↔ bool?
whether it can be bought right now
getter/setter pair
currency ↔ String?
the currency both prices are in
getter/setter pair
domain ↔ String?
the name this quote prices
getter/setter pair
hashCode → int
The hash code for this object.
no setteroverride
premium ↔ bool?
whether the registry prices it above the standard rate
getter/setter pair
priceCents ↔ int?
sell (first-term registration)
getter/setter pair
renewalPriceCents ↔ int?
sell (renewal)
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
tld ↔ String?
the top-level domain the name sits under
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) → Offer?
Returns a new Offer instance and imports its values from value if it's a Map, null otherwise.
listFromJson(dynamic json, {bool growable = false}) → List<Offer>
mapFromJson(dynamic json) → Map<String, Offer>
mapListFromJson(dynamic json, {bool growable = false}) → Map<String, List<Offer>>

Constants

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