DescribeDataSourceResponse.fromJson constructor

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

Implementation

factory DescribeDataSourceResponse.fromJson(Map<String, dynamic> json) {
  return DescribeDataSourceResponse(
    configuration: json['Configuration'] != null
        ? DataSourceConfiguration.fromJson(
            json['Configuration'] as Map<String, dynamic>)
        : null,
    createdAt: timeStampFromJson(json['CreatedAt']),
    description: json['Description'] as String?,
    errorMessage: json['ErrorMessage'] as String?,
    id: json['Id'] as String?,
    indexId: json['IndexId'] as String?,
    name: json['Name'] as String?,
    roleArn: json['RoleArn'] as String?,
    schedule: json['Schedule'] as String?,
    status: (json['Status'] as String?)?.toDataSourceStatus(),
    type: (json['Type'] as String?)?.toDataSourceType(),
    updatedAt: timeStampFromJson(json['UpdatedAt']),
  );
}