ListProtectedResourcesOutput.fromJson constructor

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

Implementation

factory ListProtectedResourcesOutput.fromJson(Map<String, dynamic> json) {
  return ListProtectedResourcesOutput(
    nextToken: json['NextToken'] as String?,
    results: (json['Results'] as List?)
        ?.whereNotNull()
        .map((e) => ProtectedResource.fromJson(e as Map<String, dynamic>))
        .toList(),
  );
}