toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final startToFireTimeout = this.startToFireTimeout;
  final timerId = this.timerId;
  final control = this.control;
  return {
    'startToFireTimeout': startToFireTimeout,
    'timerId': timerId,
    if (control != null) 'control': control,
  };
}