MutableClusterInfo.fromJson constructor
MutableClusterInfo.fromJson(
- Map<String, dynamic> json
)
Implementation
factory MutableClusterInfo.fromJson(Map<String, dynamic> json) {
return MutableClusterInfo(
brokerEBSVolumeInfo: (json['brokerEBSVolumeInfo'] as List?)
?.whereNotNull()
.map((e) => BrokerEBSVolumeInfo.fromJson(e as Map<String, dynamic>))
.toList(),
configurationInfo: json['configurationInfo'] != null
? ConfigurationInfo.fromJson(
json['configurationInfo'] as Map<String, dynamic>)
: null,
enhancedMonitoring:
(json['enhancedMonitoring'] as String?)?.toEnhancedMonitoring(),
kafkaVersion: json['kafkaVersion'] as String?,
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,
);
}