MatterEndpoint.fromMap constructor
MatterEndpoint.fromMap(
- Map map
Implementation
factory MatterEndpoint.fromMap(Map<dynamic, dynamic> map) {
return MatterEndpoint(
endpoint: map["endpoint"] as int,
deviceTypeIds: (map["deviceTypes"] as List? ?? [])
.map((e) => (e as num).toInt())
.toList(),
deviceTypeNames: (map["deviceTypeNames"] as List? ?? [])
.map((e) => e.toString())
.toList(),
clusterIds: (map["serverClusters"] as List? ?? [])
.map((e) => (e as num).toInt())
.toList(),
);
}