GetProtectionResult.fromMap constructor
GetProtectionResult.fromMap(
- Map<String, dynamic> map
)
Implementation
factory GetProtectionResult.fromMap(Map<String, dynamic> map) {
return GetProtectionResult(
id: (() { final guardedValue = map['id']; if (guardedValue == null) return null; return guardedValue as String; })(),
name: (() { final guardedValue = map['name']; if (guardedValue == null) return null; return guardedValue as String; })(),
protectionArn: (() { final guardedValue = map['protectionArn']; if (guardedValue == null) return null; return guardedValue as String; })(),
protectionId: (() { final guardedValue = map['protectionId']; if (guardedValue == null) return null; return guardedValue as String; })(),
resourceArn: (() { final guardedValue = map['resourceArn']; if (guardedValue == null) return null; return guardedValue as String; })(),
);
}