ThingModel class
Class representing a WoT Thing Model.
See W3C WoT Thing Description Specification, section 10.
Constructors
- ThingModel({String? title, String? id})
- Creates a new Thing Model instance.
-
ThingModel.fromJson(Map<
String, dynamic> json, {bool validate = true}) -
Creates a new ThingModel from a
json
object.factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → String?
-
The id of this ThingModel. Might be
null
.final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- title → String?
-
The title of this ThingModel.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited