DocumentClassifierProperties.fromJson constructor
DocumentClassifierProperties.fromJson(
- Map<String, dynamic> json
)
Implementation
factory DocumentClassifierProperties.fromJson(Map<String, dynamic> json) {
return DocumentClassifierProperties(
classifierMetadata: json['ClassifierMetadata'] != null
? ClassifierMetadata.fromJson(
json['ClassifierMetadata'] as Map<String, dynamic>)
: null,
dataAccessRoleArn: json['DataAccessRoleArn'] as String?,
documentClassifierArn: json['DocumentClassifierArn'] as String?,
endTime: timeStampFromJson(json['EndTime']),
inputDataConfig: json['InputDataConfig'] != null
? DocumentClassifierInputDataConfig.fromJson(
json['InputDataConfig'] as Map<String, dynamic>)
: null,
languageCode: (json['LanguageCode'] as String?)?.toLanguageCode(),
message: json['Message'] as String?,
mode: (json['Mode'] as String?)?.toDocumentClassifierMode(),
outputDataConfig: json['OutputDataConfig'] != null
? DocumentClassifierOutputDataConfig.fromJson(
json['OutputDataConfig'] as Map<String, dynamic>)
: null,
status: (json['Status'] as String?)?.toModelStatus(),
submitTime: timeStampFromJson(json['SubmitTime']),
trainingEndTime: timeStampFromJson(json['TrainingEndTime']),
trainingStartTime: timeStampFromJson(json['TrainingStartTime']),
volumeKmsKeyId: json['VolumeKmsKeyId'] as String?,
vpcConfig: json['VpcConfig'] != null
? VpcConfig.fromJson(json['VpcConfig'] as Map<String, dynamic>)
: null,
);
}