Endpoint.fromJson constructor

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

Implementation

factory Endpoint.fromJson(Map<String, dynamic> json) {
  return Endpoint(
    certificateArn: json['CertificateArn'] as String?,
    databaseName: json['DatabaseName'] as String?,
    dmsTransferSettings: json['DmsTransferSettings'] != null
        ? DmsTransferSettings.fromJson(
            json['DmsTransferSettings'] as Map<String, dynamic>)
        : null,
    docDbSettings: json['DocDbSettings'] != null
        ? DocDbSettings.fromJson(
            json['DocDbSettings'] as Map<String, dynamic>)
        : null,
    dynamoDbSettings: json['DynamoDbSettings'] != null
        ? DynamoDbSettings.fromJson(
            json['DynamoDbSettings'] as Map<String, dynamic>)
        : null,
    elasticsearchSettings: json['ElasticsearchSettings'] != null
        ? ElasticsearchSettings.fromJson(
            json['ElasticsearchSettings'] as Map<String, dynamic>)
        : null,
    endpointArn: json['EndpointArn'] as String?,
    endpointIdentifier: json['EndpointIdentifier'] as String?,
    endpointType:
        (json['EndpointType'] as String?)?.toReplicationEndpointTypeValue(),
    engineDisplayName: json['EngineDisplayName'] as String?,
    engineName: json['EngineName'] as String?,
    externalId: json['ExternalId'] as String?,
    externalTableDefinition: json['ExternalTableDefinition'] as String?,
    extraConnectionAttributes: json['ExtraConnectionAttributes'] as String?,
    iBMDb2Settings: json['IBMDb2Settings'] != null
        ? IBMDb2Settings.fromJson(
            json['IBMDb2Settings'] as Map<String, dynamic>)
        : null,
    kafkaSettings: json['KafkaSettings'] != null
        ? KafkaSettings.fromJson(
            json['KafkaSettings'] as Map<String, dynamic>)
        : null,
    kinesisSettings: json['KinesisSettings'] != null
        ? KinesisSettings.fromJson(
            json['KinesisSettings'] as Map<String, dynamic>)
        : null,
    kmsKeyId: json['KmsKeyId'] as String?,
    microsoftSQLServerSettings: json['MicrosoftSQLServerSettings'] != null
        ? MicrosoftSQLServerSettings.fromJson(
            json['MicrosoftSQLServerSettings'] as Map<String, dynamic>)
        : null,
    mongoDbSettings: json['MongoDbSettings'] != null
        ? MongoDbSettings.fromJson(
            json['MongoDbSettings'] as Map<String, dynamic>)
        : null,
    mySQLSettings: json['MySQLSettings'] != null
        ? MySQLSettings.fromJson(
            json['MySQLSettings'] as Map<String, dynamic>)
        : null,
    neptuneSettings: json['NeptuneSettings'] != null
        ? NeptuneSettings.fromJson(
            json['NeptuneSettings'] as Map<String, dynamic>)
        : null,
    oracleSettings: json['OracleSettings'] != null
        ? OracleSettings.fromJson(
            json['OracleSettings'] as Map<String, dynamic>)
        : null,
    port: json['Port'] as int?,
    postgreSQLSettings: json['PostgreSQLSettings'] != null
        ? PostgreSQLSettings.fromJson(
            json['PostgreSQLSettings'] as Map<String, dynamic>)
        : null,
    redshiftSettings: json['RedshiftSettings'] != null
        ? RedshiftSettings.fromJson(
            json['RedshiftSettings'] as Map<String, dynamic>)
        : null,
    s3Settings: json['S3Settings'] != null
        ? S3Settings.fromJson(json['S3Settings'] as Map<String, dynamic>)
        : null,
    serverName: json['ServerName'] as String?,
    serviceAccessRoleArn: json['ServiceAccessRoleArn'] as String?,
    sslMode: (json['SslMode'] as String?)?.toDmsSslModeValue(),
    status: json['Status'] as String?,
    sybaseSettings: json['SybaseSettings'] != null
        ? SybaseSettings.fromJson(
            json['SybaseSettings'] as Map<String, dynamic>)
        : null,
    username: json['Username'] as String?,
  );
}