toJson method
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(),
};
}