ProtectionGroup.fromJson constructor

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

Implementation

factory ProtectionGroup.fromJson(Map<String, dynamic> json) {
  return ProtectionGroup(
    aggregation:
        (json['Aggregation'] as String).toProtectionGroupAggregation(),
    members: (json['Members'] as List)
        .whereNotNull()
        .map((e) => e as String)
        .toList(),
    pattern: (json['Pattern'] as String).toProtectionGroupPattern(),
    protectionGroupId: json['ProtectionGroupId'] as String,
    resourceType:
        (json['ResourceType'] as String?)?.toProtectedResourceType(),
  );
}