DataSource.fromJson constructor
DataSource.fromJson(
- Map<String, dynamic> json
)
Implementation
factory DataSource.fromJson(Map<String, dynamic> json) {
return DataSource(
alternateDataSourceParameters: (json['AlternateDataSourceParameters']
as List?)
?.whereNotNull()
.map((e) => DataSourceParameters.fromJson(e as Map<String, dynamic>))
.toList(),
arn: json['Arn'] as String?,
createdTime: timeStampFromJson(json['CreatedTime']),
dataSourceId: json['DataSourceId'] as String?,
dataSourceParameters: json['DataSourceParameters'] != null
? DataSourceParameters.fromJson(
json['DataSourceParameters'] as Map<String, dynamic>)
: null,
errorInfo: json['ErrorInfo'] != null
? DataSourceErrorInfo.fromJson(
json['ErrorInfo'] as Map<String, dynamic>)
: null,
lastUpdatedTime: timeStampFromJson(json['LastUpdatedTime']),
name: json['Name'] as String?,
sslProperties: json['SslProperties'] != null
? SslProperties.fromJson(
json['SslProperties'] as Map<String, dynamic>)
: null,
status: (json['Status'] as String?)?.toResourceStatus(),
type: (json['Type'] as String?)?.toDataSourceType(),
vpcConnectionProperties: json['VpcConnectionProperties'] != null
? VpcConnectionProperties.fromJson(
json['VpcConnectionProperties'] as Map<String, dynamic>)
: null,
);
}