DescribedSecurityPolicy.fromJson constructor
DescribedSecurityPolicy.fromJson(
- Map<String, dynamic> json
)
Implementation
factory DescribedSecurityPolicy.fromJson(Map<String, dynamic> json) {
return DescribedSecurityPolicy(
securityPolicyName: json['SecurityPolicyName'] as String,
fips: json['Fips'] as bool?,
sshCiphers: (json['SshCiphers'] as List?)
?.whereNotNull()
.map((e) => e as String)
.toList(),
sshKexs: (json['SshKexs'] as List?)
?.whereNotNull()
.map((e) => e as String)
.toList(),
sshMacs: (json['SshMacs'] as List?)
?.whereNotNull()
.map((e) => e as String)
.toList(),
tlsCiphers: (json['TlsCiphers'] as List?)
?.whereNotNull()
.map((e) => e as String)
.toList(),
);
}