AutoTuneOptions.fromJson constructor

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

Implementation

factory AutoTuneOptions.fromJson(Map<String, dynamic> json) {
  return AutoTuneOptions(
    desiredState: (json['DesiredState'] as String?)?.toAutoTuneDesiredState(),
    maintenanceSchedules: (json['MaintenanceSchedules'] as List?)
        ?.whereNotNull()
        .map((e) =>
            AutoTuneMaintenanceSchedule.fromJson(e as Map<String, dynamic>))
        .toList(),
    rollbackOnDisable:
        (json['RollbackOnDisable'] as String?)?.toRollbackOnDisable(),
  );
}