ScalingScheduleStatus.fromJson constructor

ScalingScheduleStatus.fromJson(
  1. Object? j
)

Implementation

factory ScalingScheduleStatus.fromJson(Object? j) {
  final json = j as Map<String, Object?>;
  return ScalingScheduleStatus(
    lastStartTime: switch (json['lastStartTime']) {
      null => null,
      Object $1 => decodeString($1),
    },
    nextStartTime: switch (json['nextStartTime']) {
      null => null,
      Object $1 => decodeString($1),
    },
    state: switch (json['state']) {
      null => null,
      Object $1 => decodeString($1),
    },
  );
}