MIoTSpecType class

URN for identifying type of each device, property, etc.

Follow the URN standard RFC2141. For details, please visit: https://iot.mi.com/new/doc/design/spec/overall

Constructors

MIoTSpecType({String namespace = 'miot-spec-v2', required MIoTSpecTypeKind type, required String name, required int? value, String? product, int? version, int? id})
const
MIoTSpecType.fromJson(String json)
factory
MIoTSpecType.parse(String specType)
factory

Properties

hashCode int
The hash code for this object.
no setteroverride
id int?
final
name String
final
namespace String
final
product String?
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
type MIoTSpecTypeKind
final
value int?
final
version int?
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
sameNameWith(MIoTSpecType other) bool
sameTypeWith(MIoTSpecType other) bool
toJson() String
toString() String
A string representation of this object.
override

Operators

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