IPSet.fromJson constructor

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

Implementation

factory IPSet.fromJson(Map<String, dynamic> json) {
  return IPSet(
    arn: json['ARN'] as String,
    addresses: (json['Addresses'] as List)
        .whereNotNull()
        .map((e) => e as String)
        .toList(),
    iPAddressVersion:
        (json['IPAddressVersion'] as String).toIPAddressVersion(),
    id: json['Id'] as String,
    name: json['Name'] as String,
    description: json['Description'] as String?,
  );
}