ThingIndexingConfiguration.fromJson constructor
ThingIndexingConfiguration.fromJson(
- Map<String, dynamic> json
)
Implementation
factory ThingIndexingConfiguration.fromJson(Map<String, dynamic> json) {
return ThingIndexingConfiguration(
thingIndexingMode:
(json['thingIndexingMode'] as String).toThingIndexingMode(),
customFields: (json['customFields'] as List?)
?.whereNotNull()
.map((e) => Field.fromJson(e as Map<String, dynamic>))
.toList(),
managedFields: (json['managedFields'] as List?)
?.whereNotNull()
.map((e) => Field.fromJson(e as Map<String, dynamic>))
.toList(),
thingConnectivityIndexingMode:
(json['thingConnectivityIndexingMode'] as String?)
?.toThingConnectivityIndexingMode(),
);
}