FailoverConfig.fromJson constructor

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

Implementation

factory FailoverConfig.fromJson(Map<String, dynamic> json) {
  return FailoverConfig(
    recoveryWindow: json['recoveryWindow'] as int?,
    state: (json['state'] as String?)?.toState(),
  );
}