Analysis.fromJson constructor

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

Implementation

factory Analysis.fromJson(Map<String, dynamic> json) {
  return Analysis(
    analysisId: json['AnalysisId'] as String?,
    arn: json['Arn'] as String?,
    createdTime: timeStampFromJson(json['CreatedTime']),
    dataSetArns: (json['DataSetArns'] as List?)
        ?.whereNotNull()
        .map((e) => e as String)
        .toList(),
    errors: (json['Errors'] as List?)
        ?.whereNotNull()
        .map((e) => AnalysisError.fromJson(e as Map<String, dynamic>))
        .toList(),
    lastUpdatedTime: timeStampFromJson(json['LastUpdatedTime']),
    name: json['Name'] as String?,
    sheets: (json['Sheets'] as List?)
        ?.whereNotNull()
        .map((e) => Sheet.fromJson(e as Map<String, dynamic>))
        .toList(),
    status: (json['Status'] as String?)?.toResourceStatus(),
    themeArn: json['ThemeArn'] as String?,
  );
}