toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final recoveryWindow = this.recoveryWindow;
  final state = this.state;
  return {
    if (recoveryWindow != null) 'recoveryWindow': recoveryWindow,
    if (state != null) 'state': state.toValue(),
  };
}