ByoipCidr.fromJson constructor
Implementation
factory ByoipCidr.fromJson(Map<String, dynamic> json) {
return ByoipCidr(
cidr: json['Cidr'] as String?,
events: (json['Events'] as List?)
?.whereNotNull()
.map((e) => ByoipCidrEvent.fromJson(e as Map<String, dynamic>))
.toList(),
state: (json['State'] as String?)?.toByoipCidrState(),
);
}