ScheduledAction.fromJson constructor
ScheduledAction.fromJson(
- Map<String, dynamic> json
)
Implementation
factory ScheduledAction.fromJson(Map<String, dynamic> json) {
return ScheduledAction(
creationTime:
nonNullableTimeStampFromJson(json['CreationTime'] as Object),
resourceId: json['ResourceId'] as String,
schedule: json['Schedule'] as String,
scheduledActionARN: json['ScheduledActionARN'] as String,
scheduledActionName: json['ScheduledActionName'] as String,
serviceNamespace:
(json['ServiceNamespace'] as String).toServiceNamespace(),
endTime: timeStampFromJson(json['EndTime']),
scalableDimension:
(json['ScalableDimension'] as String?)?.toScalableDimension(),
scalableTargetAction: json['ScalableTargetAction'] != null
? ScalableTargetAction.fromJson(
json['ScalableTargetAction'] as Map<String, dynamic>)
: null,
startTime: timeStampFromJson(json['StartTime']),
);
}