InputSecurityGroup.fromJson constructor
InputSecurityGroup.fromJson(
- Map<String, dynamic> json
)
Implementation
factory InputSecurityGroup.fromJson(Map<String, dynamic> json) {
return InputSecurityGroup(
arn: json['arn'] as String?,
id: json['id'] as String?,
inputs: (json['inputs'] as List?)
?.whereNotNull()
.map((e) => e as String)
.toList(),
state: (json['state'] as String?)?.toInputSecurityGroupState(),
tags: (json['tags'] as Map<String, dynamic>?)
?.map((k, e) => MapEntry(k, e as String)),
whitelistRules: (json['whitelistRules'] as List?)
?.whereNotNull()
.map((e) => InputWhitelistRule.fromJson(e as Map<String, dynamic>))
.toList(),
);
}