MongoDbSettings.fromJson constructor
MongoDbSettings.fromJson(
- Map<String, dynamic> json
)
Implementation
factory MongoDbSettings.fromJson(Map<String, dynamic> json) {
return MongoDbSettings(
authMechanism: (json['AuthMechanism'] as String?)?.toAuthMechanismValue(),
authSource: json['AuthSource'] as String?,
authType: (json['AuthType'] as String?)?.toAuthTypeValue(),
databaseName: json['DatabaseName'] as String?,
docsToInvestigate: json['DocsToInvestigate'] as String?,
extractDocId: json['ExtractDocId'] as String?,
kmsKeyId: json['KmsKeyId'] as String?,
nestingLevel: (json['NestingLevel'] as String?)?.toNestingLevelValue(),
password: json['Password'] as String?,
port: json['Port'] as int?,
secretsManagerAccessRoleArn:
json['SecretsManagerAccessRoleArn'] as String?,
secretsManagerSecretId: json['SecretsManagerSecretId'] as String?,
serverName: json['ServerName'] as String?,
username: json['Username'] as String?,
);
}