ListAttachedIndicesResponse.fromJson constructor

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

Implementation

factory ListAttachedIndicesResponse.fromJson(Map<String, dynamic> json) {
  return ListAttachedIndicesResponse(
    indexAttachments: (json['IndexAttachments'] as List?)
        ?.whereNotNull()
        .map((e) => IndexAttachment.fromJson(e as Map<String, dynamic>))
        .toList(),
    nextToken: json['NextToken'] as String?,
  );
}