toJson method

Map<String, Object?> toJson()

Implementation

Map<String, Object?> toJson() {
  final data = <String, Object?>{};
  data['algorithm'] = algorithm;
  if (rotationPeriodMs != null) {
    data['rotation_period_ms'] = rotationPeriodMs;
  }
  if (rotationPeriodMsgs != null) {
    data['rotation_period_msgs'] = rotationPeriodMsgs;
  }
  return data;
}