DescribeBrokerResponse.fromJson constructor
DescribeBrokerResponse.fromJson(
- Map<String, dynamic> json
)
Implementation
factory DescribeBrokerResponse.fromJson(Map<String, dynamic> json) {
return DescribeBrokerResponse(
authenticationStrategy: (json['authenticationStrategy'] as String?)
?.toAuthenticationStrategy(),
autoMinorVersionUpgrade: json['autoMinorVersionUpgrade'] as bool?,
brokerArn: json['brokerArn'] as String?,
brokerId: json['brokerId'] as String?,
brokerInstances: (json['brokerInstances'] as List?)
?.whereNotNull()
.map((e) => BrokerInstance.fromJson(e as Map<String, dynamic>))
.toList(),
brokerName: json['brokerName'] as String?,
brokerState: (json['brokerState'] as String?)?.toBrokerState(),
configurations: json['configurations'] != null
? Configurations.fromJson(
json['configurations'] as Map<String, dynamic>)
: null,
created: timeStampFromJson(json['created']),
deploymentMode: (json['deploymentMode'] as String?)?.toDeploymentMode(),
encryptionOptions: json['encryptionOptions'] != null
? EncryptionOptions.fromJson(
json['encryptionOptions'] as Map<String, dynamic>)
: null,
engineType: (json['engineType'] as String?)?.toEngineType(),
engineVersion: json['engineVersion'] as String?,
hostInstanceType: json['hostInstanceType'] as String?,
ldapServerMetadata: json['ldapServerMetadata'] != null
? LdapServerMetadataOutput.fromJson(
json['ldapServerMetadata'] as Map<String, dynamic>)
: null,
logs: json['logs'] != null
? LogsSummary.fromJson(json['logs'] as Map<String, dynamic>)
: null,
maintenanceWindowStartTime: json['maintenanceWindowStartTime'] != null
? WeeklyStartTime.fromJson(
json['maintenanceWindowStartTime'] as Map<String, dynamic>)
: null,
pendingAuthenticationStrategy:
(json['pendingAuthenticationStrategy'] as String?)
?.toAuthenticationStrategy(),
pendingEngineVersion: json['pendingEngineVersion'] as String?,
pendingHostInstanceType: json['pendingHostInstanceType'] as String?,
pendingLdapServerMetadata: json['pendingLdapServerMetadata'] != null
? LdapServerMetadataOutput.fromJson(
json['pendingLdapServerMetadata'] as Map<String, dynamic>)
: null,
pendingSecurityGroups: (json['pendingSecurityGroups'] as List?)
?.whereNotNull()
.map((e) => e as String)
.toList(),
publiclyAccessible: json['publiclyAccessible'] as bool?,
securityGroups: (json['securityGroups'] as List?)
?.whereNotNull()
.map((e) => e as String)
.toList(),
storageType: (json['storageType'] as String?)?.toBrokerStorageType(),
subnetIds: (json['subnetIds'] as List?)
?.whereNotNull()
.map((e) => e as String)
.toList(),
tags: (json['tags'] as Map<String, dynamic>?)
?.map((k, e) => MapEntry(k, e as String)),
users: (json['users'] as List?)
?.whereNotNull()
.map((e) => UserSummary.fromJson(e as Map<String, dynamic>))
.toList(),
);
}