toJson method

Map<String, dynamic> toJson()

Implementation

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