ListProtectionsResponse.fromJson constructor
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(),
);
}