AutoRollbackConfiguration.fromJson constructor

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

Implementation

factory AutoRollbackConfiguration.fromJson(Map<String, dynamic> json) {
  return AutoRollbackConfiguration(
    enabled: json['enabled'] as bool?,
    events: (json['events'] as List?)
        ?.whereNotNull()
        .map((e) => (e as String).toAutoRollbackEvent())
        .toList(),
  );
}