EventsDetectionJobProperties.fromJson constructor
EventsDetectionJobProperties.fromJson(
- Map<String, dynamic> json
)
Implementation
factory EventsDetectionJobProperties.fromJson(Map<String, dynamic> json) {
return EventsDetectionJobProperties(
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']),
targetEventTypes: (json['TargetEventTypes'] as List?)
?.whereNotNull()
.map((e) => e as String)
.toList(),
);
}