NodeInfo.fromJson constructor
NodeInfo.fromJson(
- Map<String, dynamic> json
)
Implementation
factory NodeInfo.fromJson(Map<String, dynamic> json) {
return NodeInfo(
addedToClusterTime: json['addedToClusterTime'] as String?,
brokerNodeInfo: json['brokerNodeInfo'] != null
? BrokerNodeInfo.fromJson(
json['brokerNodeInfo'] as Map<String, dynamic>)
: null,
instanceType: json['instanceType'] as String?,
nodeARN: json['nodeARN'] as String?,
nodeType: (json['nodeType'] as String?)?.toNodeType(),
zookeeperNodeInfo: json['zookeeperNodeInfo'] != null
? ZookeeperNodeInfo.fromJson(
json['zookeeperNodeInfo'] as Map<String, dynamic>)
: null,
);
}