toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final action = this.action;
  final value = this.value;
  return {
    if (action != null) 'Action': action.toValue(),
    if (value != null) 'Value': value,
  };
}