IpSet.fromJson constructor

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

Implementation

factory IpSet.fromJson(Map<String, dynamic> json) {
  return IpSet(
    ipAddresses: (json['IpAddresses'] as List?)
        ?.whereNotNull()
        .map((e) => e as String)
        .toList(),
    ipFamily: json['IpFamily'] as String?,
  );
}