AutoRollbackConfig.fromJson constructor

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

Implementation

factory AutoRollbackConfig.fromJson(Map<String, dynamic> json) {
  return AutoRollbackConfig(
    alarms: (json['Alarms'] as List?)
        ?.whereNotNull()
        .map((e) => Alarm.fromJson(e as Map<String, dynamic>))
        .toList(),
  );
}