toJson method

Map<String, dynamic> toJson()

Implementation

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