DadataSuggestion<T> class

Represents an object used to hold API one suggestion from response

Annotations
  • @JsonSerializable(explicitToJson: true, genericArgumentFactories: true)

Constructors

DadataSuggestion({String? value, String? unrestrictedValue, T? data})
DadataSuggestion.fromJson(Map<String, dynamic> json, T fromJsonT(Object? json))
Generate Class from Map<String, dynamic>
factory

Properties

data ↔ T?
All the data returned in response to suggestion query.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
unrestrictedValue String?
Single line value
getter/setter pair
value String?
Single line value
getter/setter pair

Methods

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

Operators

operator ==(Object other) bool
The equality operator.
inherited