BGPPeer.fromJson constructor

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

Implementation

factory BGPPeer.fromJson(Map<String, dynamic> json) {
  return BGPPeer(
    addressFamily: (json['addressFamily'] as String?)?.toAddressFamily(),
    amazonAddress: json['amazonAddress'] as String?,
    asn: json['asn'] as int?,
    authKey: json['authKey'] as String?,
    awsDeviceV2: json['awsDeviceV2'] as String?,
    bgpPeerId: json['bgpPeerId'] as String?,
    bgpPeerState: (json['bgpPeerState'] as String?)?.toBGPPeerState(),
    bgpStatus: (json['bgpStatus'] as String?)?.toBGPStatus(),
    customerAddress: json['customerAddress'] as String?,
  );
}