toJson method

Map<String, dynamic> toJson()

Implementation

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