UpdateBrokerResponse.fromJson constructor

UpdateBrokerResponse.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory UpdateBrokerResponse.fromJson(Map<String, dynamic> json) {
  return UpdateBrokerResponse(
    authenticationStrategy: (json['authenticationStrategy'] as String?)
        ?.toAuthenticationStrategy(),
    autoMinorVersionUpgrade: json['autoMinorVersionUpgrade'] as bool?,
    brokerId: json['brokerId'] as String?,
    configuration: json['configuration'] != null
        ? ConfigurationId.fromJson(
            json['configuration'] as Map<String, dynamic>)
        : null,
    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
        ? Logs.fromJson(json['logs'] as Map<String, dynamic>)
        : null,
    securityGroups: (json['securityGroups'] as List?)
        ?.whereNotNull()
        .map((e) => e as String)
        .toList(),
  );
}