toJson method

Map<String, dynamic> toJson()

Implementation

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