ListProtectionsResponse.fromJson constructor

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

Implementation

factory ListProtectionsResponse.fromJson(Map<String, dynamic> json) {
  return ListProtectionsResponse(
    nextToken: json['NextToken'] as String?,
    protections: (json['Protections'] as List?)
        ?.whereNotNull()
        .map((e) => Protection.fromJson(e as Map<String, dynamic>))
        .toList(),
  );
}