Protection.fromJson constructor

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

Implementation

factory Protection.fromJson(Map<String, dynamic> json) {
  return Protection(
    healthCheckIds: (json['HealthCheckIds'] as List?)
        ?.whereNotNull()
        .map((e) => e as String)
        .toList(),
    id: json['Id'] as String?,
    name: json['Name'] as String?,
    resourceArn: json['ResourceArn'] as String?,
  );
}