ListItemsResponse.fromJson constructor

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

Implementation

factory ListItemsResponse.fromJson(Map<String, dynamic> json) {
  return ListItemsResponse(
    items: (json['Items'] as List?)
        ?.whereNotNull()
        .map((e) => Item.fromJson(e as Map<String, dynamic>))
        .toList(),
    nextToken: json['NextToken'] as String?,
  );
}