BrokerNodeInfo.fromJson constructor
BrokerNodeInfo.fromJson(
- Map<String, dynamic> json
)
Implementation
factory BrokerNodeInfo.fromJson(Map<String, dynamic> json) {
return BrokerNodeInfo(
attachedENIId: json['attachedENIId'] as String?,
brokerId: json['brokerId'] as double?,
clientSubnet: json['clientSubnet'] as String?,
clientVpcIpAddress: json['clientVpcIpAddress'] as String?,
currentBrokerSoftwareInfo: json['currentBrokerSoftwareInfo'] != null
? BrokerSoftwareInfo.fromJson(
json['currentBrokerSoftwareInfo'] as Map<String, dynamic>)
: null,
endpoints: (json['endpoints'] as List?)
?.whereNotNull()
.map((e) => e as String)
.toList(),
);
}