@override Map<String, String> toJson() { return super.toJson() ..addAll({ if (from != null) ...{"from": from!}, if (to != null) ...{"to": to!} }); }