ListFacetAttributesResponse.fromJson constructor

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

Implementation

factory ListFacetAttributesResponse.fromJson(Map<String, dynamic> json) {
  return ListFacetAttributesResponse(
    attributes: (json['Attributes'] as List?)
        ?.whereNotNull()
        .map((e) => FacetAttribute.fromJson(e as Map<String, dynamic>))
        .toList(),
    nextToken: json['NextToken'] as String?,
  );
}