toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final scheduledActionName = this.scheduledActionName;
  final desiredCapacity = this.desiredCapacity;
  final endTime = this.endTime;
  final maxSize = this.maxSize;
  final minSize = this.minSize;
  final recurrence = this.recurrence;
  final startTime = this.startTime;
  return {
    'ScheduledActionName': scheduledActionName,
    if (desiredCapacity != null) 'DesiredCapacity': desiredCapacity,
    if (endTime != null) 'EndTime': iso8601ToJson(endTime),
    if (maxSize != null) 'MaxSize': maxSize,
    if (minSize != null) 'MinSize': minSize,
    if (recurrence != null) 'Recurrence': recurrence,
    if (startTime != null) 'StartTime': iso8601ToJson(startTime),
  };
}