ListProtectionGroupsResponse.fromJson constructor

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

Implementation

factory ListProtectionGroupsResponse.fromJson(Map<String, dynamic> json) {
  return ListProtectionGroupsResponse(
    protectionGroups: (json['ProtectionGroups'] as List)
        .whereNotNull()
        .map((e) => ProtectionGroup.fromJson(e as Map<String, dynamic>))
        .toList(),
    nextToken: json['NextToken'] as String?,
  );
}