SentimentDetectionJobProperties.fromJson constructor

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

Implementation

factory SentimentDetectionJobProperties.fromJson(Map<String, dynamic> json) {
  return SentimentDetectionJobProperties(
    dataAccessRoleArn: json['DataAccessRoleArn'] as String?,
    endTime: timeStampFromJson(json['EndTime']),
    inputDataConfig: json['InputDataConfig'] != null
        ? InputDataConfig.fromJson(
            json['InputDataConfig'] as Map<String, dynamic>)
        : null,
    jobId: json['JobId'] as String?,
    jobName: json['JobName'] as String?,
    jobStatus: (json['JobStatus'] as String?)?.toJobStatus(),
    languageCode: (json['LanguageCode'] as String?)?.toLanguageCode(),
    message: json['Message'] as String?,
    outputDataConfig: json['OutputDataConfig'] != null
        ? OutputDataConfig.fromJson(
            json['OutputDataConfig'] as Map<String, dynamic>)
        : null,
    submitTime: timeStampFromJson(json['SubmitTime']),
    volumeKmsKeyId: json['VolumeKmsKeyId'] as String?,
    vpcConfig: json['VpcConfig'] != null
        ? VpcConfig.fromJson(json['VpcConfig'] as Map<String, dynamic>)
        : null,
  );
}