GetDataSourceOutput.fromJson constructor

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

Implementation

factory GetDataSourceOutput.fromJson(Map<String, dynamic> json) {
  return GetDataSourceOutput(
    computeStatistics: json['ComputeStatistics'] as bool?,
    computeTime: json['ComputeTime'] as int?,
    createdAt: timeStampFromJson(json['CreatedAt']),
    createdByIamUser: json['CreatedByIamUser'] as String?,
    dataLocationS3: json['DataLocationS3'] as String?,
    dataRearrangement: json['DataRearrangement'] as String?,
    dataSizeInBytes: json['DataSizeInBytes'] as int?,
    dataSourceId: json['DataSourceId'] as String?,
    dataSourceSchema: json['DataSourceSchema'] as String?,
    finishedAt: timeStampFromJson(json['FinishedAt']),
    lastUpdatedAt: timeStampFromJson(json['LastUpdatedAt']),
    logUri: json['LogUri'] as String?,
    message: json['Message'] as String?,
    name: json['Name'] as String?,
    numberOfFiles: json['NumberOfFiles'] as int?,
    rDSMetadata: json['RDSMetadata'] != null
        ? RDSMetadata.fromJson(json['RDSMetadata'] as Map<String, dynamic>)
        : null,
    redshiftMetadata: json['RedshiftMetadata'] != null
        ? RedshiftMetadata.fromJson(
            json['RedshiftMetadata'] as Map<String, dynamic>)
        : null,
    roleARN: json['RoleARN'] as String?,
    startedAt: timeStampFromJson(json['StartedAt']),
    status: (json['Status'] as String?)?.toEntityStatus(),
  );
}