BatchListAttachedIndicesResponse.fromJson constructor

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

Implementation

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