ByoipCidr.fromJson constructor

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

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(),
  );
}