EntityRecognizerProperties.fromJson constructor
EntityRecognizerProperties.fromJson(
- Map<String, dynamic> json
)
Implementation
factory EntityRecognizerProperties.fromJson(Map<String, dynamic> json) {
return EntityRecognizerProperties(
dataAccessRoleArn: json['DataAccessRoleArn'] as String?,
endTime: timeStampFromJson(json['EndTime']),
entityRecognizerArn: json['EntityRecognizerArn'] as String?,
inputDataConfig: json['InputDataConfig'] != null
? EntityRecognizerInputDataConfig.fromJson(
json['InputDataConfig'] as Map<String, dynamic>)
: null,
languageCode: (json['LanguageCode'] as String?)?.toLanguageCode(),
message: json['Message'] as String?,
recognizerMetadata: json['RecognizerMetadata'] != null
? EntityRecognizerMetadata.fromJson(
json['RecognizerMetadata'] 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,
);
}