MySQLSettings.fromJson constructor
MySQLSettings.fromJson(
- Map<String, dynamic> json
)
Implementation
factory MySQLSettings.fromJson(Map<String, dynamic> json) {
return MySQLSettings(
afterConnectScript: json['AfterConnectScript'] as String?,
databaseName: json['DatabaseName'] as String?,
eventsPollInterval: json['EventsPollInterval'] as int?,
maxFileSize: json['MaxFileSize'] as int?,
parallelLoadThreads: json['ParallelLoadThreads'] as int?,
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?,
serverTimezone: json['ServerTimezone'] as String?,
targetDbType: (json['TargetDbType'] as String?)?.toTargetDbType(),
username: json['Username'] as String?,
);
}