ThingTypeProperties.fromJson constructor

ThingTypeProperties.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory ThingTypeProperties.fromJson(Map<String, dynamic> json) {
  return ThingTypeProperties(
    searchableAttributes: (json['searchableAttributes'] as List?)
        ?.whereNotNull()
        .map((e) => e as String)
        .toList(),
    thingTypeDescription: json['thingTypeDescription'] as String?,
  );
}