ListResourceInventoryResponse.fromJson constructor

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

Implementation

factory ListResourceInventoryResponse.fromJson(Map<String, dynamic> json) {
  return ListResourceInventoryResponse(
    nextToken: json['NextToken'] as String?,
    resourceInventoryList: (json['ResourceInventoryList'] as List?)
        ?.whereNotNull()
        .map((e) => ResourceInventory.fromJson(e as Map<String, dynamic>))
        .toList(),
  );
}