ThingGroupDocument.fromJson constructor
Implementation
factory ThingGroupDocument.fromJson(Map<String, dynamic> json) {
return ThingGroupDocument(
attributes: (json['attributes'] as Map<String, dynamic>?)
?.map((k, e) => MapEntry(k, e as String)),
parentGroupNames: (json['parentGroupNames'] as List?)
?.whereNotNull()
.map((e) => e as String)
.toList(),
thingGroupDescription: json['thingGroupDescription'] as String?,
thingGroupId: json['thingGroupId'] as String?,
thingGroupName: json['thingGroupName'] as String?,
);
}