ListResourcesResponse.fromJson constructor

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

Implementation

factory ListResourcesResponse.fromJson(Map<String, dynamic> json) {
  return ListResourcesResponse(
    nextToken: json['NextToken'] as String?,
    resourceInfoList: (json['ResourceInfoList'] as List?)
        ?.whereNotNull()
        .map((e) => ResourceInfo.fromJson(e as Map<String, dynamic>))
        .toList(),
  );
}