ActivityScheduledEventDetails.fromJson constructor

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

Implementation

factory ActivityScheduledEventDetails.fromJson(Map<String, dynamic> json) {
  return ActivityScheduledEventDetails(
    resource: json['resource'] as String,
    heartbeatInSeconds: json['heartbeatInSeconds'] as int?,
    input: json['input'] as String?,
    inputDetails: json['inputDetails'] != null
        ? HistoryEventExecutionDataDetails.fromJson(
            json['inputDetails'] as Map<String, dynamic>)
        : null,
    timeoutInSeconds: json['timeoutInSeconds'] as int?,
  );
}