toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final highAction = this.highAction;
  final lowAction = this.lowAction;
  final mediumAction = this.mediumAction;
  return {
    if (highAction != null) 'HighAction': highAction,
    if (lowAction != null) 'LowAction': lowAction,
    if (mediumAction != null) 'MediumAction': mediumAction,
  };
}