Map<String, Object?> toJson() => <String, Object?>{ 'source': source, 'target': target, if (transform != null) 'transform': transform, };