BrokerNodeGroupInfo.fromJson constructor
BrokerNodeGroupInfo.fromJson(
- Map<String, dynamic> json
)
Implementation
factory BrokerNodeGroupInfo.fromJson(Map<String, dynamic> json) {
return BrokerNodeGroupInfo(
clientSubnets: (json['clientSubnets'] as List)
.whereNotNull()
.map((e) => e as String)
.toList(),
instanceType: json['instanceType'] as String,
brokerAZDistribution:
(json['brokerAZDistribution'] as String?)?.toBrokerAZDistribution(),
securityGroups: (json['securityGroups'] as List?)
?.whereNotNull()
.map((e) => e as String)
.toList(),
storageInfo: json['storageInfo'] != null
? StorageInfo.fromJson(json['storageInfo'] as Map<String, dynamic>)
: null,
);
}