SearchIndexResponse.fromJson constructor
SearchIndexResponse.fromJson(
- Map<String, dynamic> json
)
Implementation
factory SearchIndexResponse.fromJson(Map<String, dynamic> json) {
return SearchIndexResponse(
nextToken: json['nextToken'] as String?,
thingGroups: (json['thingGroups'] as List?)
?.whereNotNull()
.map((e) => ThingGroupDocument.fromJson(e as Map<String, dynamic>))
.toList(),
things: (json['things'] as List?)
?.whereNotNull()
.map((e) => ThingDocument.fromJson(e as Map<String, dynamic>))
.toList(),
);
}