ClusterInfo.fromJson constructor
ClusterInfo.fromJson(
- Map<String, dynamic> json
)
Implementation
factory ClusterInfo.fromJson(Map<String, dynamic> json) {
return ClusterInfo(
activeOperationArn: json['activeOperationArn'] as String?,
brokerNodeGroupInfo: json['brokerNodeGroupInfo'] != null
? BrokerNodeGroupInfo.fromJson(
json['brokerNodeGroupInfo'] as Map<String, dynamic>)
: null,
clientAuthentication: json['clientAuthentication'] != null
? ClientAuthentication.fromJson(
json['clientAuthentication'] as Map<String, dynamic>)
: null,
clusterArn: json['clusterArn'] as String?,
clusterName: json['clusterName'] as String?,
creationTime: timeStampFromJson(json['creationTime']),
currentBrokerSoftwareInfo: json['currentBrokerSoftwareInfo'] != null
? BrokerSoftwareInfo.fromJson(
json['currentBrokerSoftwareInfo'] as Map<String, dynamic>)
: null,
currentVersion: json['currentVersion'] as String?,
encryptionInfo: json['encryptionInfo'] != null
? EncryptionInfo.fromJson(
json['encryptionInfo'] as Map<String, dynamic>)
: null,
enhancedMonitoring:
(json['enhancedMonitoring'] as String?)?.toEnhancedMonitoring(),
loggingInfo: json['loggingInfo'] != null
? LoggingInfo.fromJson(json['loggingInfo'] as Map<String, dynamic>)
: null,
numberOfBrokerNodes: json['numberOfBrokerNodes'] as int?,
openMonitoring: json['openMonitoring'] != null
? OpenMonitoring.fromJson(
json['openMonitoring'] as Map<String, dynamic>)
: null,
state: (json['state'] as String?)?.toClusterState(),
stateInfo: json['stateInfo'] != null
? StateInfo.fromJson(json['stateInfo'] as Map<String, dynamic>)
: null,
tags: (json['tags'] as Map<String, dynamic>?)
?.map((k, e) => MapEntry(k, e as String)),
zookeeperConnectString: json['zookeeperConnectString'] as String?,
zookeeperConnectStringTls: json['zookeeperConnectStringTls'] as String?,
);
}